Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Fixed PHP NOTICE when running on command line

  • Loading branch information...
commit 9f81a39203395a7b6c560d2181d5f25f0f4edc2c 1 parent 66624b1
@cygri cygri authored jeffreybarke committed
Showing with 2 additions and 2 deletions.
  1. +2 −2 Ckan_client.php
View
4 Ckan_client.php
@@ -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;
}
-}
+}
Please sign in to comment.
Something went wrong with that request. Please try again.