incorrect compare for legal_user update with legal_version_check return value

AndCycle - September 3, 2008 - 14:37
Project:Legal
Version:5.x-1.9
Component:Code
Category:bug report
Priority:critical
Assigned:Unassigned
Status:active
Description

       // if already accepted skip data entry
        $accepted = legal_version_check($account->uid, $conditions['tc_id']);
       
        if ($accepted == TRUE) break;
       
        legal_save_accept($account->uid, $conditions['tc_id']);
        break;

will,
legal_version_check return $log_messages as false, but this is just text and will compare as true,
do strong compare with === , please

 
 

Drupal is a registered trademark of Dries Buytaert.