Skip to content

Commit

Permalink
revert refactoring
Browse files Browse the repository at this point in the history
  • Loading branch information
philippK-de committed Mar 13, 2015
1 parent d33b4b9 commit e4a9755
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions include/class.milestone.php
Original file line number Diff line number Diff line change
Expand Up @@ -291,8 +291,8 @@ function getMilestones($status = 1, $lim = 100)

$milestones = array();

$sel = $conn->prepare("SELECT ID FROM milestones WHERE `status`=? ORDER BY `end` ASC LIMIT ?");
$sel->execute(array($status, $lim));
$sel = $conn->prepare("SELECT ID FROM milestones WHERE `status`=? ORDER BY `end` ASC LIMIT $lim");
$sel->execute(array($status));

while ($milestone = $sel->fetch()) {
$themilestone = $this->getMilestone($milestone["ID"]);
Expand Down
4 changes: 2 additions & 2 deletions include/class.project.php
Original file line number Diff line number Diff line change
Expand Up @@ -332,8 +332,8 @@ function getProjects($status = 1, $lim = 10)

$projekte = array();

$sel = $conn->prepare("SELECT `ID` FROM projekte WHERE `status`= ? ORDER BY `end` ASC LIMIT ?");
$selStmt = $sel->execute(array($status,$lim));
$sel = $conn->prepare("SELECT `ID` FROM projekte WHERE `status`= ? ORDER BY `end` ASC LIMIT $lim ");
$selStmt = $sel->execute(array($status));

while ($projekt = $sel->fetch()) {
$project = $this->getProject($projekt["ID"]);
Expand Down

0 comments on commit e4a9755

Please sign in to comment.