diff --git a/extending/optimize/optimize.php b/extending/optimize/optimize.php
index <HASH>..<HASH> 100644
--- a/extending/optimize/optimize.php
+++ b/extending/optimize/optimize.php
@@ -18,7 +18,7 @@
 	function rah_backup__optimize() {
 		@$tables = getThings('SHOW TABLES');
 		
-		foreach((array) $tables as $table) {
+		foreach($tables as $table) {
 			@safe_query('OPTIMIZE TABLE `'.$table.'`');
 		}
 	}
getThings should always return an array.