diff options
author | Urban Müller | 2010-03-10 14:30:27 +0000 |
---|---|---|
committer | Urban Müller | 2010-03-10 14:30:27 +0000 |
commit | b5d6d94772e97739c0f13aefcb8495fa607e325f (patch) | |
tree | 9cc371f34e5753aa644d072828763ff55afa6fff | |
parent | 7773df0accb4115fab52a62bfd44a0a169dd76cf (diff) | |
download | itools-b5d6d94772e97739c0f13aefcb8495fa607e325f.tar.gz itools-b5d6d94772e97739c0f13aefcb8495fa607e325f.tar.bz2 itools-b5d6d94772e97739c0f13aefcb8495fa607e325f.zip |
better err msg if url empty
-rw-r--r-- | it_url.class | 2 |
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 |