浏览代码

[upgrade] db_last_error should be globalwhen used :P

emanuele 12 年之前
父节点
当前提交
80e48b217e
共有 1 个文件被更改,包括 2 次插入0 次删除
  1. 2 0
      other/upgrade.php

+ 2 - 0
other/upgrade.php

@@ -2170,6 +2170,8 @@ function changeSettings($config_vars)
 }
 function updateLastError() 
 {
+	global $db_last_error;
+
 	// clear out the db_last_error file
 	file_put_contents(dirname(__FILE__) . '/db_last_error.php', "<?php\n$db_last_error = 0;\n?" . ">\n");
 }