|
From: | Dan Kuykendall |
Subject: | Re: [Phpgroupware-users] Double Choco Latte 0.9.3 and phpgw 0.9.14.003 |
Date: | Thu, 29 May 2003 13:52:23 -0700 |
User-agent: | Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.4b) Gecko/20030507 |
Brian Epstein wrote:
Fatal error: Cannot redeclare print_debug() (previously declared in /home/bepstein/public_html/phpgroupware/phpgwapi/inc/functions.inc.php:54) in /home/bepstein/public_html/phpgroupware/phpgwapi/inc/functions.inc.php on line 54I've looked through the code for obvious problems, but, so far have not found any. It appears that it is somehow loading phpgwapi/inc/functions.inc twice as print_debug isn't redefined anywhere.Any ideas?
I saw this happen in the HEAD code as well. It is happening for a reason, which I dont remember offhand. However the solution is easy. In the phpgwapi/inc/functions.inc.php wrap the function in an if(!function_exists('print_debug'))
{ function print_debug($var) { //the function code } } Seek3r
[Prev in Thread] | Current Thread | [Next in Thread] |