Permalink
Browse files

Avoid an undefined index notice error

  • Loading branch information...
Fabrice Luraine
Fabrice Luraine committed Jun 5, 2009
1 parent 0241400 commit 46b5c26ed7bc14654fcf804d194cdafa05da4428
Showing with 2 additions and 1 deletion.
  1. +2 −1 lib/limonade.php
View
@@ -1657,7 +1657,8 @@ function http_response_status($num = null)
507 => 'Insufficient Storage',
510 => 'Not Extended'
);
return is_null($num) ? $status : $status[$num];
if(is_null($num)) return $status;
return array_key_exists($num, $status) ? $status[$num] : '';
}
/**

0 comments on commit 46b5c26

Please sign in to comment.