Changeset 2421 for trunk/modules/pdomo/models/pdo.php
- Timestamp:
- 04/04/2008 02:19:34 PM (8 months ago)
- Files:
-
- 1 modified
-
trunk/modules/pdomo/models/pdo.php (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
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 === '######')
