openrat-cms

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

commit 09b4c9032ca39f41070c6743637650a952f1d71a
parent 1cb40df54570a0b9bca0927b8d517d61f747b976
Author: dankert <devnull@localhost>
Date:   Tue, 23 Feb 2010 23:05:26 +0100

Fix: Syntax PHP-4-kompatibel.

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

diff --git a/objectClasses/Object.class.php b/objectClasses/Object.class.php @@ -494,9 +494,11 @@ SQL if (count($row) == 0) { + $project = Session::getProject(); + $this->name = lang('unknown'); - $this->parentid = Session::getProject()->getRootObjectId(); - $this->projectid = Session::getProject()->projectid; + $this->parentid = $project->getRootObjectId(); + $this->projectid = $project->projectid; $this->filename = ""; $this->orderid = 0; $this->isRoot = false;