Re: [phpodpworld-users] phpodpworld 2.0 cat_exists in functions.inc.php
Status: Beta
Brought to you by:
hansfn
|
From: Hans F. N. <Han...@hi...> - 2006-04-21 20:39:47
|
* Howard Lee <hl...@gm...> [2006-04-21]:
> Dear all,
>
> The below function definition in the file functions.inc.php causes an
> error while running index.php.
> function cat_exists(&$cat, &$catid = null) {
> ....
>
> So I've change it to below, and it is OK now:
> function cat_exists(&$cat, &$catid) {
> ....
>
> I'm not very familiar with PHP, but I suspect it was a typo in the
> original script. Or is it specific to the PHP version used? Sorry for
> having so many questions....
Default values for variables passed by reference (as for cat_exists) is
only available in PHP 5 - my bad again.
Thx for reporting. I'm very glad that you ask all these questions
because I want this software to work for both Postgresql and MySQL...
Regards,
Hans
PS! I'll use the DEFAULT keyword in stead of hard-coding "-1" in the
insert statement as you suggested in another message.
|