@@ -80,7 +80,9 @@ discard block |
||
| 80 | 80 | { |
| 81 | 81 | global $config; |
| 82 | 82 | if (self::isMultipleDatabaseEnabled()) { |
| 83 | - if (is_null($database)) $database = GetUrlParam(DB, 0); |
|
| 83 | + if (is_null($database)) { |
|
| 84 | + $database = GetUrlParam(DB, 0); |
|
| 85 | + } |
|
| 84 | 86 | if (!is_null($database) && !preg_match('/^\d+$/', $database)) { |
| 85 | 87 | self::error($database); |
| 86 | 88 | } |
@@ -94,7 +96,9 @@ discard block |
||
| 94 | 96 | { |
| 95 | 97 | global $config; |
| 96 | 98 | if (self::isMultipleDatabaseEnabled()) { |
| 97 | - if (is_null($database)) $database = GetUrlParam(DB, 0); |
|
| 99 | + if (is_null($database)) { |
|
| 100 | + $database = GetUrlParam(DB, 0); |
|
| 101 | + } |
|
| 98 | 102 | if (!is_null($database) && !preg_match('/^\d+$/', $database)) { |
| 99 | 103 | self::error($database); |
| 100 | 104 | } |
@@ -180,8 +184,7 @@ discard block |
||
| 180 | 184 | |
| 181 | 185 | list (, $result) = self::executeQuery($query, $columns, '', $params, -1); |
| 182 | 186 | $entryArray = array(); |
| 183 | - while ($post = $result->fetchObject()) |
|
| 184 | - { |
|
| 187 | + while ($post = $result->fetchObject()) { |
|
| 185 | 188 | /* @var $instance Author|Tag|Serie|Publisher */ |
| 186 | 189 | |
| 187 | 190 | $instance = new $category($post); |