issue #001795 : Don't display links deleted

This commit is contained in:
Michael RICOIS 2013-12-04 13:07:11 +00:00
parent c471f08e60
commit 073496f958

View File

@ -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); $liens = $this->db->fetchAll($sql, null, Zend_Db::FETCH_OBJ);
} catch (Zend_Db_Exception $e) { } catch (Zend_Db_Exception $e) {
throw new Exception(__METHOD__ . ': ' . $e->getMessage()); 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); $liens = $this->db->fetchAll($sql, null, Zend_Db::FETCH_OBJ);
} catch (Zend_Db_Exception $e) { } catch (Zend_Db_Exception $e) {
throw new Exception(__METHOD__ . ': ' . $e->getMessage()); throw new Exception(__METHOD__ . ': ' . $e->getMessage());