1
0
Fork 0
mirror of https://github.com/Yetangitu/ampache synced 2025-10-05 10:49:37 +02:00

Fix Scrutinizer reported errors

This commit is contained in:
Afterster 2014-07-09 23:27:14 +02:00
parent 4a2d7b97f6
commit 80cd08ed04
29 changed files with 117 additions and 92 deletions

View file

@ -1867,7 +1867,7 @@ class Update
$sql = "INSERT INTO `user_preference` VALUES (-1,?,'0')";
$retval = Dba::write($sql, array($id)) ? $retval : false;
return true;
return $retval;
}
/**
@ -1908,7 +1908,7 @@ class Update
$sql = "INSERT INTO `user_preference` VALUES (-1,?,'1')";
$retval = Dba::write($sql, array($id)) ? $retval : false;
return true;
return $retval;
}
/**
@ -2158,7 +2158,7 @@ class Update
$sql = "DELETE FROM `preference` WHERE `name` = 'tags_userlist'";
$retval = Dba::write($sql) ? $retval : false;
return true;
return $retval;
}
/**
@ -2550,7 +2550,7 @@ class Update
$sql = "INSERT INTO `user_preference` VALUES (-1,?,'0')";
$retval = Dba::write($sql, array($id)) ? $retval : false;
return true;
return $retval;
}
/**