openrat-cms

Unnamed repository; edit this file 'description' to name the repository.
Log | Files | Refs

commit 1dc1a62f20a6156d7e1f7f46974ff13c7fa55f8f
parent d95244eeea4da93a7ba41d9e71fd19b9649fa56d
Author: dankert <devnull@localhost>
Date:   Sat, 24 Oct 2009 23:58:55 +0200

Backtrace ausgeben, wenn Objekt nicht geladen werden konnte.

Diffstat:
objectClasses/Object.class.php | 9+++++----
1 file changed, 5 insertions(+), 4 deletions(-)

diff --git a/objectClasses/Object.class.php b/objectClasses/Object.class.php @@ -597,13 +597,14 @@ SQL $row = $db->getRow($sql); - if ( count($row)==0 ) - die('cannot load object '.$this->objectid ); + if (count($row) == 0) + { + debug_print_backtrace(); + die('fatal: Object::objectLoad(): objectid not found: '.$this->objectid.', SQL='.$sql->raw ); + } $this->setDatabaseRow( $row ); - if (count($row) == 0) - die('fatal: Object::objectLoad(): objectid not found: '.$this->objectid.', SQL='.$sql ); }