Permalink
Browse files

Fixed PHP NOTICE when running on command line

  • Loading branch information...
1 parent 66624b1 commit 9f81a39203395a7b6c560d2181d5f25f0f4edc2c @cygri cygri committed with jeffreybarke Aug 19, 2010
Showing with 2 additions and 2 deletions.
  1. +2 −2 Ckan_client.php
View
@@ -230,7 +230,7 @@ private function set_headers()
*/
private function set_user_agent()
{
- if ('80' === $_SERVER['SERVER_PORT'])
+ if ('80' === @$_SERVER['SERVER_PORT'])
{
$server_name = 'http://' . $_SERVER['SERVER_NAME'];
}
@@ -696,4 +696,4 @@ private function parse_response($data = FALSE, $format = FALSE)
return FALSE;
}
-}
+}

0 comments on commit 9f81a39

Please sign in to comment.