Empty results raises error:non existed variable access

Bug #902815 reported by Nassim0x09
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Alfanous - Quranic Search engine
Fix Released
Medium
abdullahc

Bug Description

visit this url :

http://mobile.alfanous.org/index.php?search=nassim
or
http://mobile.alfanous.org/index.php?search=نسيم

output :

Notice: Undefined property: stdClass::$0 in /home/alfanous/www/mobile/index.php on line 242
Notice: Trying to get property of non-object in /home/alfanous/www/mobile/index.php on line 242
Notice: Trying to get property of non-object in /home/alfanous/www/mobile/index.php on line 242

i think if there's no results it's show errors

Revision history for this message
Assem Chelli (عاصم شلي) (assem-ch) wrote :

Thank you nassim, we'll work to fix it

Changed in alfanous:
assignee: nobody → عبدالله شلي (Abdellah Chelli) (sneetsher)
importance: Undecided → Medium
abdullahc (sneetsher)
summary: - show php errors
+ Empty results raises error:non existed variable access
Changed in alfanous:
status: New → Confirmed
Revision history for this message
abdullahc (sneetsher) wrote :

Salam Nassim,

Mobile web interface script uses Alfanous JSON serviced.

When there is empty results, JSON service was replaying with NULL. Things changed after adding suggestions feature. So now we get suggestions with results 'total' = 0.

The test of empty results should be changed to check interval->total instead.

Thank you Nassim

abdullahc (sneetsher)
Changed in alfanous:
status: Confirmed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.