PDA

View Full Version : cannot search hostlist


naim
03-04-2007, 12:42 AM
hi, when i try to search hosts, i get the following error.

Fatal error: Call to a member function query() on a non-object in /usr/local/oreon/www/include/configuration/configObject/host/listHost.php on line 33

php-5.1.6-r6 running on gentoo

Any idea whats going on ?

froeling
03-07-2007, 10:15 AM
If you're using oreon 1.3.3, there is a small bug in the php file.


/usr/local/oreon/www/include/configuration/configObject/host/listHost.php

in the given line. ($$DBRESULTDB in stead of $pearDB)

Change this line into:
$DBRESULT =& $pearDB->query("SELECT COUNT(*) FROM host WHERE host_name LIKE '%".htmlentities($search, ENT_QUOTES)."%' AND host_register = '1'");


Best regards.

naim
03-12-2007, 06:54 PM
Fixed, thnx