Index: /trunk/website/scripts/blackbox/upload.php
===================================================================
--- /trunk/website/scripts/blackbox/upload.php	(revision 1671)
+++ /trunk/website/scripts/blackbox/upload.php	(revision 1672)
@@ -77,5 +77,5 @@
 		{
 			//Ignore the exception key; that stores the exception type.
-			if ($stackIndex == 'exception')
+			if ((string)$stackIndex == 'exception')
 				continue;
 			
@@ -85,11 +85,11 @@
 			if (preg_match('/^([^ 	]+) (.*) ([^ 	]+) (.*):([^ 	]+) ([0-9]+)/', $stackFrame, $matches))
 			{
-				$function = $matches[1];
-				$file = $matches[2];
-				$line = intval($matches[3]);
+				$function = $matches[2];
+				$file = $matches[4];
+				$line = intval($matches[6]);
 			}
 			else if (preg_match('/^([^ 	]+) (.*)/', $stackFrame, $matches))
 			{
-				$function = $matches[1];
+				$function = $matches[2];
 			}
 			
