| @@ -68,18 +68,18 @@ | ||
| 68 | 68 | $ids = implode(',', $ids); |
| 69 | 69 | $where[] = " `id` IN ({$ids})"; |
| 70 | 70 | } |
| 71 | 71 | // Filter by backup name. |
| 72 | - $where[] = (($filters['backupId'] == null) ? ' `backupId` IS NULL' : " `backupId` = {$filters['backupId']}"); | |
| 72 | + $where[] = (!isset($filters['backupId']) ? ' `backupId` IS NULL' : " `backupId` = {$filters['backupId']}"); | |
| 73 | 73 | unset($filters['backupId']); |
| 74 | 74 | // Filter by parent. |
| 75 | - if ($filters['parent'] != null) { | |
| 75 | + if (isset($filters['parent'])) { | |
| 76 | 76 | $filters['parent'] = implode(',', ((array) $filters['parent'])); |
| 77 | 77 | $where[] = " `parent` IN ({$filters['parent']})"; |
| 78 | 78 | unset($filters['parent']); |
| 79 | 79 | } |
| 80 | 80 | // Types filter. |
| 81 | - if ($filters['types']) { | |
| 81 | + if (isset($filters['types'])) { | |
| 82 | 82 | $types = '"' . implode('", "', $filters['types']) . '"'; |
| 83 | 83 | $where[] = " `type` IN ({$types})"; |
| 84 | 84 | unset($filters['types']); |
| 85 | 85 | } |