From 073496f958dcd7b9acb2c88b7249ab79ea938857 Mon Sep 17 00:00:00 2001 From: Michael RICOIS Date: Wed, 4 Dec 2013 13:07:11 +0000 Subject: [PATCH] issue #001795 : Don't display links deleted --- library/Metier/partenaires/classMLiens2.php | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/library/Metier/partenaires/classMLiens2.php b/library/Metier/partenaires/classMLiens2.php index 11eaff44..a9e17ff7 100644 --- a/library/Metier/partenaires/classMLiens2.php +++ b/library/Metier/partenaires/classMLiens2.php @@ -115,6 +115,9 @@ class MLiens2 } } + //Don't display deleted - anomaly + $sql->where('l.dateSuppr=?', '0000-00-00 00:00:00'); + $liens = $this->db->fetchAll($sql, null, Zend_Db::FETCH_OBJ); } catch (Zend_Db_Exception $e) { throw new Exception(__METHOD__ . ': ' . $e->getMessage()); @@ -171,6 +174,9 @@ class MLiens2 } } + //Don't display deleted - anomaly + $sql->where('l.dateSuppr=?', '0000-00-00 00:00:00'); + $liens = $this->db->fetchAll($sql, null, Zend_Db::FETCH_OBJ); } catch (Zend_Db_Exception $e) { throw new Exception(__METHOD__ . ': ' . $e->getMessage());