dilawar / OldHippo

A schedular and calendar for NCBS Bangalore.
https://ncbs.res.in/hippo
MIT License
0 stars 0 forks source link

Fatal error in statistics page #34

Closed rohitsuratekar closed 6 years ago

rohitsuratekar commented 6 years ago

I am getting following exception in "https://ncbs.res.in/hippo/statistics.php" page,

Fatal error: Uncaught TypeError: Argument 1 passed to get() must be of the type array, boolean given, called in /var/www/html/hippo/database/helper.php on line 2779 and defined in /var/www/html/hippo/methods.php:251 Stack trace: #0 /var/www/html/hippo/database/helper.php(2779): get(false, 'pi_or_host', '') #1 /var/www/html/hippo/statistics.php(324): getPIOrHost('ashwinig') #2 {main} thrown in /var/www/html/hippo/methods.php on line 251

untitled
dilawar commented 6 years ago

Oh no. Thanks. Will fix it.

Added static type checking in many function. Next week gonna be nightmare.

dilawar commented 6 years ago

31ad06ecff880249f3044 fixes it.

There may be some similar issues hiding somewhere. If you notice, please let me know. Closing this one.,