Changeset 2421
- Timestamp:
- 04/04/08 14:19:34 (5 months ago)
- Location:
- trunk/modules/pdomo
- Files:
-
- 2 modified
-
libraries/PDODB.php (modified) (1 diff)
-
models/pdo.php (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/modules/pdomo/libraries/PDODB.php
r2419 r2421 68 68 * @return string 69 69 */ 70 public function where($key, $op, $value = NULL)70 public function where($key, $op, $value = '{WHERE_VALUE_DEFAULT}') 71 71 { 72 if ($value === NULL)72 if ($value === '{WHERE_VALUE_DEFAULT}') 73 73 { 74 74 // Use the operator as the value -
trunk/modules/pdomo/models/pdo.php
r2420 r2421 277 277 // Object is loaded and saved 278 278 $this->loaded = $this->saved = TRUE; 279 280 // Execute the on_load event 281 $this->__on_load(); 279 282 } 280 283 else … … 335 338 public function find($key, $op = '######', $value = '######') 336 339 { 337 if ($value === '######') 340 if ($key === TRUE) 341 { 342 // Reload the current record 343 $key = $this->primary_key; 344 $op = '='; 345 $value = $this->data[$this->primary_key]; 346 } 347 elseif ($value === '######') 338 348 { 339 349 if ($op === '######')
