@@ -35,8 +35,7 @@ |
||
35 | 35 | |
36 | 36 | file_put_contents($folder . '/index.html', '<script>history.go(-1);</script>'); |
37 | 37 | } |
38 | - } |
|
39 | - catch (\Exception $e) { |
|
38 | + } catch (\Exception $e) { |
|
40 | 39 | echo 'Caught exception: ', $e->getMessage(), "\n", '<br>'; |
41 | 40 | } |
42 | 41 | } |
@@ -60,7 +60,8 @@ discard block |
||
60 | 60 | . " WHERE {$itemHandler->table}.status > 0" |
61 | 61 | . ' ) ' |
62 | 62 | . ' )'; |
63 | - else: |
|
63 | + else { |
|
64 | + : |
|
64 | 65 | $sql = " DELETE {$linkHandler->table} FROM {$linkHandler->table}" |
65 | 66 | . " LEFT JOIN {$itemHandler->table} AS aa ON {$linkHandler->table}.tag_itemid = aa.{$itemHandler->keyName} " |
66 | 67 | . ' WHERE ' |
@@ -68,7 +69,8 @@ discard block |
||
68 | 69 | . ' AND ' |
69 | 70 | . " ( aa.{$itemHandler->keyName} IS NULL" |
70 | 71 | . ' OR aa.status < 1' |
71 | - . ' )'; |
|
72 | + . ' )'; |
|
73 | + } |
|
72 | 74 | endif; |
73 | 75 | if (!$result = $linkHandler->db->queryF($sql)) { |
74 | 76 | //xoops_error($linkHandler->db->error()); |