Fixed a bug with PHP3

This commit is contained in:
Loïc Chapeaux
2001-06-30 16:02:31 +00:00
parent 7f7e2f6ad3
commit edb9c660e6

View File

@@ -24,7 +24,7 @@ if ($num_tables>0 && MYSQL_MAJOR_VERSION>=3.23 && intval(MYSQL_MINOR_VERSION)>=3
// Blending out tables in use // Blending out tables in use
if ($result!=false && mysql_num_rows($result)>0){ if ($result!=false && mysql_num_rows($result)>0){
while ($tmp=mysql_fetch_array($result)){ while ($tmp=mysql_fetch_array($result)){
if (preg_match("/in_use=[1-9]+/",$tmp["Comment"])){ // in use? if (preg_match("/in_use=[1-9]+/",$tmp['Comment'])){ // in use?
// memorize tablename // memorize tablename
$sot_cache[$tmp[0]]=true; $sot_cache[$tmp[0]]=true;
} }