Skip to content

Commit

Permalink
No commit message
Browse files Browse the repository at this point in the history
  • Loading branch information
halojoy committed Apr 19, 2018
1 parent 882e795 commit 96572df
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion core/classAdmin.php
Original file line number Diff line number Diff line change
Expand Up @@ -491,7 +491,8 @@ public function setperpage()
{
if (isset($_POST['perpage'])) {
$perpage = $_POST['perpage'];
if (is_numeric($perpage)) {
$perpage = intval($perpage);
if ($perpage > 0) {
$sql = "UPDATE settings SET setvalue='$perpage' WHERE setkey='perpage'";
$this->pdo->exec($sql);
}
Expand Down

0 comments on commit 96572df

Please sign in to comment.