Commit 2b10e359fea9d6aabc5ab35557954a503bea730b

  • Tree SHA1: b4e13ea
  • Parent SHA1: 4cc9b18 (Avoid spewing warnings about returning by reference on memcached cache misses by setting a var and returning it instead of trying to return false directly.)
  • raw diff | raw patch
Avoid PHP notice when outputting API data for remote users; no $user means no $user->timezone :)

Trying to get property of non-object (/srv/com.leuksman.status/lib/api.php:171)
  
168168
169169 $timezone = 'UTC';
170170
171 if ($user->timezone) {
171 if (!empty($user) && $user->timezone) {
172172 $timezone = $user->timezone;
173173 }
174174