From: vincent@cubedesigners.com Date: Mon, 26 Nov 2018 13:18:06 +0000 (+0000) Subject: fix #2373 @0:20 X-Git-Url: http://git.cubedesigners.com/?a=commitdiff_plain;h=c8827ef4b95a9c03814bd075a98ff4637e5124e3;p=cubeextranet.git fix #2373 @0:20 --- diff --git a/inc/commons/DAO/class.common.dao.fichier.php b/inc/commons/DAO/class.common.dao.fichier.php index 4c389f038..be9cc7313 100644 --- a/inc/commons/DAO/class.common.dao.fichier.php +++ b/inc/commons/DAO/class.common.dao.fichier.php @@ -1,10 +1,12 @@ con); $contacts = $dao->getContacts($this->entreprise_id); $daoEquipiers = new commonDAOEquipier($this->con); @@ -68,7 +71,8 @@ class commonDAOFichier extends commonDAO { return $fichiers; } - public function count() { + public function count() + { $dao = new commonDAOEntreprise($this->con); $contacts = $dao->getContacts($this->entreprise_id); $res = 0; @@ -80,11 +84,12 @@ class commonDAOFichier extends commonDAO { return $res; } - public function sort($a, $b) { + public function sort($a, $b) + { $a1 = $a->{ - $this->orderby}; + $this->orderby}; $b1 = $b->{ - $this->orderby}; + $this->orderby}; if (is_numeric($a1) && is_numeric($b1)) { if ($a1 == $b1) { @@ -104,26 +109,27 @@ class commonDAOFichier extends commonDAO { } } - protected function search($fichiers) { + protected function search($fichiers) + { $res = array(); foreach ($fichiers as $k => $f) { - if (stristr((string) $f, $this->q)) { + if (stristr((string)$f, $this->q)) { $res[$k] = $f; } } return $res; } - public function supprime($path) { + public function supprime($path) + { if (file_exists(FTPROOT . $path)) { unlink(FTPROOT . $path); } } - public function deleteOldFiles() { + public function deleteOldFiles() + { cubeFiles::deleteFilesOlderThan(FTPROOT, 60, array('*.ipa', '*.apk')); } -} - -?> \ No newline at end of file +} \ No newline at end of file