root/ip/trunk/install/includes/functions_install.php
| 150 | 167 | ||
|---|---|---|---|
2274 | define('FORUM_CAT', 0); | 2274 | define('FORUM_CAT', 0); |
2275 | } | 2275 | } |
2276 | 2276 | ||
2277 | $sql = 'SHOW TABLES LIKE ' . CATEGORIES_TABLE; | ||
2278 | $result = $db->sql_query($sql); | ||
2279 | $row = $db->sql_fetchrow($result); | ||
2280 | if (empty($row)) | ||
2281 | { | ||
2282 | return false; | ||
2283 | } | ||
2284 | |||
2277 | // Determine the highest id used within the old forums table (we add the categories after the forum ids) | 2285 | // Determine the highest id used within the old forums table (we add the categories after the forum ids) |
2278 | $sql = 'SELECT MAX(forum_id) AS max_forum_id | 2286 | $sql = 'SELECT MAX(forum_id) AS max_forum_id |
2279 | FROM ' . FORUMS_TABLE; | 2287 | FROM ' . FORUMS_TABLE; |
Download diff