From b5d6d94772e97739c0f13aefcb8495fa607e325f Mon Sep 17 00:00:00 2001 From: Urban Müller Date: Wed, 10 Mar 2010 14:30:27 +0000 Subject: better err msg if url empty --- it_url.class | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'it_url.class') 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 -- cgit v1.2.3