<?xml version="1.0" encoding="UTF-8"?>
<commit>
  <added type="array"/>
  <modified type="array">
    <modified>
      <diff>@@ -24,7 +24,9 @@ class Controller {
 		$this-&gt;initModel();
 		
 		$this-&gt;action = (!empty($this-&gt;params['a'])) ? $this-&gt;params['a'] : 'index';
-		$this-&gt;runAction($this-&gt;action, $this-&gt;params['id']);
+		
+		$id = isset($this-&gt;params['id']) ? $this-&gt;params['id'] : null;
+		$this-&gt;runAction($this-&gt;action, $id);
 		
 	}
 	</diff>
      <filename>include/controller.php</filename>
    </modified>
    <modified>
      <diff>@@ -12,7 +12,7 @@ class View {
 	public function render($file)
 	{
 		$this-&gt;setAutoRender();
-		if($this-&gt;vars)	extract($this-&gt;vars);
+		if(isset($this-&gt;vars))	extract($this-&gt;vars);
 		if(preg_match('/^.*\.haml$/', $file, $matches) &gt; 0) {
 			$this-&gt;Haml-&gt;display(VIEW_DIR . DS . $file);
 		} else {</diff>
      <filename>include/view.php</filename>
    </modified>
    <modified>
      <diff>@@ -34,7 +34,7 @@ function handleSearch(data) {
 	}
 	$(&quot;#results&quot;).html(li);
 	$(&quot;#loader&quot;).remove();
-	$(&quot;#results li div.button&quot;).click(download);
+	$(&quot;#results li &gt; a&quot;).click(download);
 	$('#results li').click(showDescription);
 }
 
@@ -51,6 +51,8 @@ function download() {
 		dataType: 'json',
 		success: handleDownload
 	});
+	
+	return false;
 }
 
 function handleDownload(data) {
@@ -104,19 +106,27 @@ function update(data) {
 		var html = '&lt;div&gt;Code: '+data.code+'&lt;/div&gt;';
 		html += '&lt;div&gt;'+data.reason+'&lt;/div&gt;';
 	} else {
-		// build status report	
-		var html = '&lt;fieldset&gt;&lt;div class=&quot;title&quot;&gt;Currently downloading: ' + data.currently_downloading[0].nzbName + '&lt;/div&gt;';
-		html += '&lt;div class=&quot;loader&quot;&gt;';
-		html += '&lt;div class=&quot;info&quot;&gt;'+ data.percent_complete + '% complete&lt;/div&gt;';
-		html += '&lt;div class=&quot;bar&quot; style=&quot;width: ' + data.percent_complete + '%&quot;&gt;&lt;/div&gt;&lt;/div&gt;&lt;/fieldset&gt;';
+		// build status report
+		var html = '';
+		if(data.currently_downloading[0]) {
+    		html += '&lt;fieldset&gt;';
+    		html += '&lt;div class=&quot;title&quot;&gt;Currently downloading: ' + data.currently_downloading[0].nzbName + '&lt;/div&gt;';
+    		html += '&lt;div class=&quot;loader&quot;&gt;';
+    		html += '&lt;div class=&quot;info&quot;&gt;'+ data.percent_complete + '% complete&lt;/div&gt;';
+    		html += '&lt;div class=&quot;bar&quot; style=&quot;width: ' + data.percent_complete + '%&quot;&gt;&lt;/div&gt;&lt;/div&gt;&lt;/fieldset&gt;';
+    	}
 		html += '&lt;h4 class=&quot;title&quot;&gt;Queued Reports&lt;/h4&gt;';
-		
-		html += '&lt;ul id=&quot;queue&quot;&gt;';
-		for(var x in data.queued) {
-			var report = data.queued[x];
-			html += '&lt;li&gt;'+report['nzbName']+'&lt;span&gt;'+report['total_mb']+'MB&lt;/span&gt;&lt;/li&gt;';
+		if(data.queued.length &gt; 0) {
+		    html += '&lt;ul id=&quot;queue&quot;&gt;';
+    		for(var x in data.queued) {
+    			var report = data.queued[x];
+    			html += '&lt;li&gt;'+report['nzbName']+'&lt;span&gt;'+report['total_mb']+'MB&lt;/span&gt;&lt;/li&gt;';
+    		}
+    		html += '&lt;/ul&gt;';
+		} else {
+		    html += '&lt;fieldset&gt;&lt;p&gt;There are not any reports currently in the queue.&lt;/p&gt;&lt;/fieldset&gt;';
 		}
-		html += '&lt;/ul&gt;';
+		
 	}
 	$(&quot;#monitor&quot;).html($(html));
 }</diff>
      <filename>js/application.js</filename>
    </modified>
    <modified>
      <diff>@@ -23,7 +23,7 @@ class Newz
 		if(!empty($uri_params)) {
 			$uri .= &quot;&amp;&quot; . implode('&amp;', $uri_params);
 		}
-#die($uri);
+
 		try {
 			$rss_php = new rss_php;
 			$rss_php-&gt;load($uri);</diff>
      <filename>models/newz.php</filename>
    </modified>
    <modified>
      <filename>tmp/cache/haml_c/.gitignore</filename>
    </modified>
    <modified>
      <diff>@@ -1 +1 @@
-&lt;?= json_encode($data) ?&gt;
\ No newline at end of file
+&lt;?php echo json_encode($data) ?&gt;
\ No newline at end of file</diff>
      <filename>views/layouts/json.phtml</filename>
    </modified>
  </modified>
  <removed type="array"/>
  <parents type="array">
    <parent>
      <id>d18cb9899cf3aed0a89e3213dee7bc215b84566b</id>
    </parent>
  </parents>
  <author>
    <name>Buckley Robinson</name>
    <email>buck@bandicoot.home</email>
  </author>
  <url>http://github.com/buck2769/hellaphone/commit/9f571a23f017733d28a793c58bff868f9dbd531b</url>
  <id>9f571a23f017733d28a793c58bff868f9dbd531b</id>
  <committed-date>2009-05-11T20:58:01-07:00</committed-date>
  <authored-date>2009-05-11T20:58:01-07:00</authored-date>
  <message>downloads work</message>
  <tree>e728c22a711b5a9dd4dbaf82a60fb7e942a6f0db</tree>
  <committer>
    <name>Buckley Robinson</name>
    <email>buck@bandicoot.home</email>
  </committer>
</commit>
