@@ -177,8 +177,10 @@ |
||
| 177 | 177 | $option['name'], |
| 178 | 178 | ENT_QUOTES | ENT_HTML5 |
| 179 | 179 | ) . "\"><br>\n"; |
| 180 | - else : |
|
| 180 | + else { |
|
| 181 | + : |
|
| 181 | 182 | $tree .= $prefix . $option['name'] . '<input type="hidden" id="' . $this->getName() . '[groups][' . $this->_groupId . '][' . $option['id'] . "]\"><br>\n"; |
| 183 | + } |
|
| 182 | 184 | endif; |
| 183 | 185 | if (isset($option['children'])) { |
| 184 | 186 | foreach ($option['children'] as $child) { |
@@ -22,8 +22,8 @@ discard block |
||
| 22 | 22 | foreach (array_keys($items) as $cat_id) { |
| 23 | 23 | foreach (array_keys($items[$cat_id]) as $item_id) { |
| 24 | 24 | $item_obj =& $items_obj[$item_id]; |
| 25 | - if (is_object($item_obj)) |
|
| 26 | - $items[$cat_id][$item_id] = array( |
|
| 25 | + if (is_object($item_obj)) { |
|
| 26 | + $items[$cat_id][$item_id] = array( |
|
| 27 | 27 | "title" => $item_obj->getVar("title"), |
| 28 | 28 | "uid" => $item_obj->getVar("uid"), |
| 29 | 29 | "link" => 'index.php?op=item&fct=item&id='.$item_obj->getVar("sid").'&cid='.$item_obj->getVar("cid"), |
@@ -31,6 +31,7 @@ discard block |
||
| 31 | 31 | "tags" => tag_parse_tag($item_obj->getVar("tags", "n")), |
| 32 | 32 | "content" => $myts->displayTarea($item_obj->getVar("lyrics"),true,true,true,true,true,true) |
| 33 | 33 | ); |
| 34 | + } |
|
| 34 | 35 | } |
| 35 | 36 | } |
| 36 | 37 | unset($items_obj); |
@@ -59,7 +60,8 @@ discard block |
||
| 59 | 60 | " WHERE {$item_handler->table}.approved > 0" . |
| 60 | 61 | " ) " . |
| 61 | 62 | " )"; |
| 62 | - else: |
|
| 63 | + else { |
|
| 64 | + : |
|
| 63 | 65 | $sql = " DELETE {$link_handler->table} FROM {$link_handler->table}" . |
| 64 | 66 | " LEFT JOIN {$item_handler->table} AS aa ON {$link_handler->table}.tag_itemid = aa.{$item_handler->keyName} " . |
| 65 | 67 | " WHERE " . |
@@ -68,6 +70,7 @@ discard block |
||
| 68 | 70 | " ( aa.{$item_handler->keyName} IS NULL" . |
| 69 | 71 | " OR aa.approved < 1" . |
| 70 | 72 | " )"; |
| 73 | + } |
|
| 71 | 74 | endif; |
| 72 | 75 | if (!$result = $link_handler->db->queryF($sql)) { |
| 73 | 76 | //xoops_error($link_handler->db->error()); |