Skip to content

Commit

Permalink
Avoid an undefined index notice error
Browse files Browse the repository at this point in the history
  • Loading branch information
Fabrice Luraine committed Jun 5, 2009
1 parent 0241400 commit 46b5c26
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion lib/limonade.php
Expand Up @@ -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] : '';
}

/**
Expand Down

0 comments on commit 46b5c26

Please sign in to comment.