summaryrefslogtreecommitdiff
path: root/it_url.class
diff options
context:
space:
mode:
authorUrban Müller2010-03-10 14:30:27 +0000
committerUrban Müller2010-03-10 14:30:27 +0000
commitb5d6d94772e97739c0f13aefcb8495fa607e325f (patch)
tree9cc371f34e5753aa644d072828763ff55afa6fff /it_url.class
parent7773df0accb4115fab52a62bfd44a0a169dd76cf (diff)
downloaditools-b5d6d94772e97739c0f13aefcb8495fa607e325f.tar.gz
itools-b5d6d94772e97739c0f13aefcb8495fa607e325f.tar.bz2
itools-b5d6d94772e97739c0f13aefcb8495fa607e325f.zip
better err msg if url empty
Diffstat (limited to 'it_url.class')
-rw-r--r--it_url.class2
1 files changed, 1 insertions, 1 deletions
diff --git a/it_url.class b/it_url.class
index b4af739..09c1292 100644
--- a/it_url.class
+++ b/it_url.class
@@ -237,7 +237,7 @@ function get($p=null, $timeout=5)
$p += array('totaltimeout' => "999999", 'timeout' => 5, 'retries' => 1);
- if ($p['url'])
+ if (isset($p['url']))
$url = new it_url($p['url']);
else
$url =& $this; # Must be reference for $url->result and $url->data to work