|
@@ 1341-1350 (lines=10) @@
|
| 1338 |
|
item_properties.tool = '".TOOL_FORUM_CATEGORY."' |
| 1339 |
|
$condition_session |
| 1340 |
|
ORDER BY forum_categories.cat_order ASC"; |
| 1341 |
|
if (api_is_allowed_to_edit()) { |
| 1342 |
|
$sql = "SELECT * |
| 1343 |
|
FROM ".$table_categories." forum_categories, ".$table_item_property." item_properties |
| 1344 |
|
WHERE |
| 1345 |
|
forum_categories.cat_id=item_properties.ref AND |
| 1346 |
|
item_properties.visibility<>2 AND |
| 1347 |
|
item_properties.tool='".TOOL_FORUM_CATEGORY."' |
| 1348 |
|
$condition_session |
| 1349 |
|
ORDER BY forum_categories.cat_order ASC"; |
| 1350 |
|
} |
| 1351 |
|
} else { |
| 1352 |
|
$sql = "SELECT * |
| 1353 |
|
FROM ".$table_categories." forum_categories, ".$table_item_property." item_properties |
|
@@ 1351-1360 (lines=10) @@
|
| 1348 |
|
$condition_session |
| 1349 |
|
ORDER BY forum_categories.cat_order ASC"; |
| 1350 |
|
} |
| 1351 |
|
} else { |
| 1352 |
|
$sql = "SELECT * |
| 1353 |
|
FROM ".$table_categories." forum_categories, ".$table_item_property." item_properties |
| 1354 |
|
WHERE |
| 1355 |
|
forum_categories.cat_id=item_properties.ref AND |
| 1356 |
|
item_properties.tool='".TOOL_FORUM_CATEGORY."' AND |
| 1357 |
|
forum_categories.cat_id = ".intval($id)." |
| 1358 |
|
$condition_session |
| 1359 |
|
ORDER BY forum_categories.cat_order ASC"; |
| 1360 |
|
} |
| 1361 |
|
$result = Database::query($sql); |
| 1362 |
|
$forum_categories_list = array(); |
| 1363 |
|
|