AbhishekGhosh / anywhereindb

Automatically exported from code.google.com/p/anywhereindb
0 stars 0 forks source link

Result showing "undefined variable $data" #4

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
Running a search that returns no result. You will see the 
message "undefined variable data ..." 
followed by "sorry, xxx is not found in database. .."

I found that it was caused by the fetch_array function. I changed the code 
a bit, adding a check condition to see if $data is declared, if not, 
return 0. And I also changed the check condition at line 173 to

if($search_result != 0)

and it worked. Hopefully it helps. :-)

Original issue reported on code.google.com by zhenlilu...@gmail.com on 17 Jul 2009 at 5:30

GoogleCodeExporter commented 9 years ago
Now i have initialized the array. 
$data = array();

thank you. 

Original comment by happ...@gmail.com on 23 Jul 2009 at 2:04