[giapeto] undefined index -error

Petteri Karttunen pkarttun at siba.fi
Tue Oct 14 10:22:41 PDT 2003


Hi!

With the cvs-version of both Horde and Giapeto of 14. October i get:
Notice: Undefined index: modified in .../horde/giapeto/lib/Page.php on line 121

The function in question does not check the existence of
$this->data['page']['modified']. So should the line 121 be something like:

!isset($this->data['page']['modified']) ? $modified = null : $modified =
strftime('%d/%m/%y', $this->data['page']['modified']);

instead of:

$modified = strftime('%d/%m/%y', $this->data['page']['modified']);



:pete


More information about the giapeto mailing list