commit af06598d740a6f8ff365c6e5c86f0347ba71dfb2 parent 437dac153d24d4db84c247f6b660bf7bdc89ddfb Author: dankert <devnull@localhost> Date: Wed, 23 Dec 2009 23:57:23 +0100 Nicht initialisierte Variablen nicht benutzen. Diffstat:
objectClasses/Template.class.php | | | 6 | ++++-- |
1 file changed, 4 insertions(+), 2 deletions(-)
diff --git a/objectClasses/Template.class.php b/objectClasses/Template.class.php @@ -121,8 +121,10 @@ class Template { $model = Session::getProjectModel(); $project = Session::getProject(); - $this->modelid = $model->modelid; - $this->projectid = $project->projectid; + if ( is_object($model) ) + $this->modelid = $model->modelid; + if ( is_object($project) ) + $this->projectid = $project->projectid; if ( is_numeric($templateid) ) $this->templateid = $templateid;