Empty results raises error:non existed variable access

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

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

Thank you nassim, we'll work to fix it

Changed in alfanous:
assignee: nobody → عبدالله شلي (Abdellah Chelli) (sneetsher)
importance: Undecided → Medium
Sneetsher (sneetsher) on 2011-12-11
summary: - show php errors
+ Empty results raises error:non existed variable access
Changed in alfanous:
status: New → Confirmed
Sneetsher (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

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

Other bug subscribers