Bugfix and minor improvements

This commit is contained in:
Daniel Winzen
2016-09-28 20:51:43 +02:00
parent 08f666941e
commit 2e8f51080c
4 changed files with 12 additions and 7 deletions

View File

@ -57,7 +57,7 @@ function check_links(&$onions, &$ch, $link){
}
}
function add_onions(&$onions, $db){
function add_onions(&$onions, PDO $db){
$stmt=$db->query('SELECT md5sum FROM ' . PREFIX . 'onions;');
while($tmp=$stmt->fetch(PDO::FETCH_NUM)){
if(isSet($onions[$tmp[0]])){