@@ -1,7 +1,5 @@ |
||
| 1 | 1 | <?php |
| 2 | 2 | |
| 3 | -use Xoopsmodules\instruction; |
|
| 4 | - |
|
| 5 | 3 | // Автор: andrey3761 |
| 6 | 4 | $moduleDirName = basename(dirname(__DIR__)); |
| 7 | 5 | require_once __DIR__ . '/../../../include/cp_header.php'; |
@@ -1,6 +1,5 @@ |
||
| 1 | 1 | <?php namespace Xoopsmodules\instruction; |
| 2 | 2 | |
| 3 | -use Xmf\Request; |
|
| 4 | 3 | use Xoopsmodules\instruction\common; |
| 5 | 4 | |
| 6 | 5 | require_once __DIR__ . '/common/VersionChecks.php'; |
@@ -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()); |