Fix exception type catched from Exception to proper PDOException

This commit is contained in:
DariusIII
2017-06-16 14:46:17 +02:00
parent 338a2488f6
commit dd9a20dc3a
2 changed files with 2 additions and 2 deletions
@@ -327,7 +327,7 @@ function collectionCheck(&$pdo, $groupID)
if ($pdo->queryOneRow(sprintf('SELECT id FROM collections_%d LIMIT 1', $groupID)) === false) {
exit();
}
} catch (\Exception $e) {
} catch (\PDOException $e) {
}
}
+1 -1
View File
@@ -601,7 +601,7 @@ class Forking extends \fork_daemon
if ($this->pdo->queryOneRow(sprintf('SELECT id FROM collections_%d LIMIT 1', $group['id'])) !== false) {
$this->work[] = ['id' => $group['id']];
}
} catch (\Exception $e) {
} catch (\PDOException $e) {
}
}
}