Undefined variable error
| From: | Vincent Gevers | Date: | Mon, 27 Dec 2004 21:20:35 +0000 |
| Subject: | Undefined variable error | ||
| Groups: | php.mirrors | ||
| Request: | Send a blank email to php-mirrors+get-26976@lists.php.net to get a copy of this message | ||
Hi,
as you can see on http://phpweb.allowee.no-ip.com/contact.php
Notice: Undefined variable: functionsjs in /home/phpweb/include/layout.inc on
line 228
this commit diff seems to explain the problem
$last_updated = strftime("%c %Z", $LAST_UPDATED);
$layout_helper = ($PAGE_COLUMNS > 2 ? "</div>" : "");
- $functionsjs = (in_array("functionsjs", $config) ? "\n<script
src=\"" .
$_SERVER['STATIC_ROOT'] . '/functions.js"
type="text/javascript"></script>' :
'');
+ //$functionsjs = (in_array("functionsjs", $config) ? "\n<script
src=\"" . $_SERVER['STATIC_ROOT'] . '/functions.js"
type="text/javascript"></script>' : '');
print <<<END_FOOTER
@@ -226,7 +226,7 @@
Last updated: {$last_updated}
</div>
</div>{$functionsjs}
^^^^^
$functionsjs is echoed but not defined (anymore)
Regards,
Vincent