Changeset 691 for trunk/phpbms/modules/api/include/apiclass.php
- Timestamp:
- 12/30/09 14:17:21 (2 years ago)
- Files:
-
- 1 modified
-
trunk/phpbms/modules/api/include/apiclass.php (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/phpbms/modules/api/include/apiclass.php
r689 r691 598 598 $processor->timeFormat = $this->options->timeFormat; 599 599 }//end if 600 601 if(!$this->options->useUuid){ 600 601 $errorMessage = ""; 602 if($this->options->useUuid){ 603 if(!isset($request["data"]["uuid"])) 604 $errorMessage = "The `uuid` field must be set."; 605 }else{ 606 if(!isset($request["data"]["id"])) 607 $errorMessage = "The `id` field must be set."; 608 }//end if 609 610 if($errorMessage) 611 $this->sendError("Update failed from request number ".$i, $errorMessage); 612 elseif(!$this->options->useUuid){ 602 613 $therecord = $processor->getRecord((int) $request["data"]["id"], $this->options->useUuid); 603 614 $thereturn = $therecord["id"]; … … 608 619 $thevalue = $request["data"]["uuid"]; 609 620 } 610 611 621 612 622 if($thereturn == $thevalue)