Skip to content
Snippets Groups Projects
Commit 704a3c22 authored by Giovannoni Laurent's avatar Giovannoni Laurent
Browse files

fix : pb with _ in actionpage

parent 763382f6
No related branches found
No related tags found
No related merge requests found
......@@ -188,9 +188,8 @@ class ActionControler
}
if($mode == "up") {
//return self::update($action);
self::update($action);
return 'WTF !!!';
return self::update($action);
}
elseif($mode =="add"){
return self::insert($action);
......@@ -198,6 +197,22 @@ class ActionControler
return false;
}
/**
* if action_page = _ raz
*
*
* @return bool true if raz ok
*/
public function razActionPage()
{
$dbUp = new dbquery();
$dbUp->connect();
$return = self::update($action);
$query="update " . self::$actions_table . " set action_page = '' where action_page = '_'";
$dbUp->query($query);
return true;
}
/**
* Inserts in the database (actions table) an Action object
*
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment