- Timestamp:
- Dec 15, 2009, 4:52:57 PM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/XPressMU/xpressme_integration_kit/include/general_functions.php
r423 r488 126 126 $table_list = array(); 127 127 $ret = array(); 128 $pattern = $wp_prefix . $table_name . '|' . $wp_prefix . '[0-9]*_' . $table_name; 129 128 130 if (!empty($wp_prefix) && !empty($table_name)){ 129 131 $sql = "SHOW TABLES LIKE '" . $wp_prefix . '%' . $table_name . "'"; … … 132 134 if($result = $xoopsDB->queryF($sql)){ 133 135 while($row = $xoopsDB->fetchRow($result)){ 134 $table_list[] = $row[0]; 136 if(preg_match('/' . $pattern . '/' , $row[0])){ 137 $table_list[] = $row[0]; 138 } 135 139 } 136 140 } … … 138 142 $rows = $xoops_db->get_results($sql, ARRAY_N); 139 143 foreach ($rows as $row){ 140 $table_list[] = $row[0]; 144 if(preg_match('/' . $pattern . '/' , $row[0])){ 145 $table_list[] = $row[0]; 146 } 141 147 } 142 148 }
Note: See TracChangeset
for help on using the changeset viewer.