phpBMS

Changeset 744 for trunk/phpbms/install

Show
Ignore:
Timestamp:
01/09/10 23:17:12 (2 years ago)
Author:
brieb
Message:
  • second try at fixing the gerneation of uuids
Files:
1 modified

Legend:

Unmodified
Added
Removed
  • trunk/phpbms/install/generateuuids.php

    r743 r744  
    260260        $list = array(); 
    261261        while($therecord = $this->db->fetchArray($queryresult)) 
    262             $list[$therecord["id"]] = $therecord["uuid"]; 
     262            if($therecord["uuid"]) 
     263                $list[$therecord["id"]] = $therecord["uuid"]; 
    263264 
    264265        return $list; 
     
    320321 
    321322            foreach($fields as $key=>$value) 
    322                 if(strpos($therecord[$key],":") === false && ((int) $therecord[$key])) 
    323                     if(isset($value[$therecord[$key]]) && $therecord[$key] != 0) 
     323                if(strpos($therecord[$key],":") === false) 
     324                    if(isset($value[$therecord[$key]])) 
    324325                        $updateClause .= ", `".$key."` = '".$value[$therecord[$key]]."'"; 
    325326                    else 
phpBMS vulnerability assesment provided by Orvant Inc. Copyright © 2010 Kreotek, LLC. All Rights reserved.