Commit a7faf517 authored by Bate's avatar Bate

Correction affichage planning inexistant

parent 4db9fbfd
...@@ -12,9 +12,11 @@ class planning2 extends stdentity ...@@ -12,9 +12,11 @@ class planning2 extends stdentity
function load_by_id( $id ) function load_by_id( $id )
{ {
if(is_null($id) || empty($id))
return false;
$req = new requete( $this->db, "SELECT * from `pl2_planning` $req = new requete( $this->db, "SELECT * from `pl2_planning`
WHERE `id_planning` = '". WHERE `id_planning` = '".
mysql_real_escape_string($id). intval($id).
"' LIMIT 1"); "' LIMIT 1");
if( $req->lines != 1 ) if( $req->lines != 1 )
{ {
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment