Changeset 20461 for extensions/rv_db_integrity
- Timestamp:
- Jan 29, 2013, 10:21:43 PM (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
extensions/rv_db_integrity/check_db.php
r8897 r20461 8 8 $query = ' 9 9 DESCRIBE '.$reft.' '.$reff; 10 $row = mysql_fetch_assoc( pwg_query($query) );10 $row = pwg_db_fetch_assoc( pwg_query($query) ); 11 11 $ref_nullable = ( $row['Null'] != ''); 12 12 … … 21 21 22 22 $result = pwg_query($query); 23 return mysql_num_rows($result);23 return pwg_db_num_rows($result); 24 24 } 25 25 … … 99 99 FROM '.CATEGORIES_TABLE.' c INNER JOIN '.OLD_PERMALINKS_TABLE.' op ON c.permalink=op.permalink'; 100 100 $result = pwg_query($query); 101 $tpl_var['result'] = mysql_num_rows($result);102 while ($row= mysql_fetch_assoc($result))101 $tpl_var['result'] = pwg_db_num_rows($result); 102 while ($row=pwg_db_fetch_assoc($result)) 103 103 { 104 104 $tpl_var['errors'][] = $row['permalink'].' matches categories '.$row['id'].' and '.$row['cat_id']; … … 122 122 WHERE (ic.category_id IS NULL OR ic.image_id IS NULL) AND i.storage_category_id IS NOT NULL'; 123 123 $result = pwg_query($query); 124 $tpl_var['result'] = mysql_num_rows($result);124 $tpl_var['result'] = pwg_db_num_rows($result); 125 125 $i=0; 126 while ($row= mysql_fetch_assoc($result) and $i<=50 )126 while ($row=pwg_db_fetch_assoc($result) and $i<=50 ) 127 127 { 128 128 $tpl_var['errors'][] = $row['path'].' missing entry ('.$row['id'].','.$row['storage_category_id']. ') in #'.IMAGE_CATEGORY_TABLE;
Note: See TracChangeset
for help on using the changeset viewer.