Skip to content

Commit

Permalink
another pgsql's happy hour
Browse files Browse the repository at this point in the history
  • Loading branch information
adubovikov authored Sep 14, 2016
1 parent e3d11be commit e6cf13b
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions api/RestApi/Dashboard.php
Original file line number Diff line number Diff line change
Expand Up @@ -327,7 +327,6 @@ public function postMenuDashboard($id, $param){
$table = "user_menu";
if($protect)
{

$query = "SELECT id FROM user_menu WHERE active = 1 AND alias='?' limit 1";
$query = $db->makeQuery($query, $id);
$data = $db->loadObjectArray($query);
Expand All @@ -337,7 +336,7 @@ public function postMenuDashboard($id, $param){
$query = $db->makeQuery($query, $id);
$db->executeQuery($query);

$query = "INSERT INTO ".$table." SET id='?', name='?', icon='?', weight=?, alias='?'";
$query = "INSERT INTO ".$table." (id, name, icon, weight, alias) VALUES ('?','?','?',?,'?');";
$query = $db->makeQuery($query, $id, $name, $icon, $weight, $alias);
}
else {
Expand Down

0 comments on commit e6cf13b

Please sign in to comment.