Index: php_errors.module
===================================================================
--- php_errors.module
+++ php_errors.module
@@ -60,10 +60,10 @@
     'type' => MENU_NORMAL_ITEM,
   );
 
-  $items['admin/reports/php_errors/archive/%'] = array(
+  $items['admin/reports/php_errors/archive/%php_errors_archive_id'] = array(
     'title' => 'Archive',
     'page callback' => '_php_errors_archive_view',   
-    'page arguments' => array(arg(4)),  
+    'page arguments' => array('php_errors_archive_id', 4),  
     'access arguments' => array('administer site configuration'),
     'type' => MENU_LOCAL_TASK,
   );
@@ -99,6 +99,7 @@
 }
 
 function _php_errors_show($type = null) {
+  $rows = array();
   $results = db_query("SELECT count(1) cnt, timestamp ts, message ms, variables v, location 
     FROM watchdog WHERE type = 'php'
     GROUP by MID(v, 62, 30) ORDER BY timestamp DESC, cnt DESC");
