static function change_read($action, $side = "_gestion") { global $dbh; $read = demandes_actions::read($action, $side); $value = ""; if ($read) { $value = 1; } else { $value = 0; } $query = "UPDATE demandes_actions SET actions_read" . $side . "=" . $value . " WHERE id_action=" . $action->id_action; if (pmb_mysql_query($query, $dbh)) { return true; } else { return false; } }