mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-06-28 14:20:15 +00:00
Missing querycount
git-svn-id: https://develop.svn.wordpress.org/trunk@558 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
@@ -134,6 +134,7 @@ switch ($action) {
|
||||
$row = $wpdb->get_row("SELECT cat_id, cat_name, auto_toggle, show_images, show_description, "
|
||||
. " show_rating, show_updated, sort_order, sort_desc, text_before_link, text_after_link, "
|
||||
. " text_after_all, list_limit FROM $tablelinkcategories WHERE cat_id=$cat_id");
|
||||
++$querycount;
|
||||
if ($row) {
|
||||
if ($row->list_limit == -1) {
|
||||
$row->list_limit = '';
|
||||
@@ -324,11 +325,12 @@ switch ($action) {
|
||||
$results = $wpdb->get_results("SELECT cat_id, cat_name, auto_toggle, show_images, show_description, "
|
||||
. " show_rating, show_updated, sort_order, sort_desc, text_before_link, text_after_link, "
|
||||
. " text_after_all, list_limit FROM $tablelinkcategories ORDER BY cat_id");
|
||||
foreach ($results as $row) {
|
||||
if ($row->list_limit == -1) {
|
||||
$row->list_limit = 'none';
|
||||
}
|
||||
$style = ($i % 2) ? ' class="alternate"' : '';
|
||||
++$querycount;
|
||||
foreach ($results as $row) {
|
||||
if ($row->list_limit == -1) {
|
||||
$row->list_limit = 'none';
|
||||
}
|
||||
$style = ($i % 2) ? ' class="alternate"' : '';
|
||||
?>
|
||||
<tr valign="middle" <?php echo $style ?>>
|
||||
<td style="border-bottom: 1px dotted #9C9A9C;"><?php echo $row->cat_id?></td>
|
||||
|
||||
Reference in New Issue
Block a user