PDA

View Full Version : cannot search hostlist


naim
4th March 2007, 01:42
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
7th March 2007, 11:15
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
12th March 2007, 19:54
Fixed, thnx