Changeset 112276 in spip-zone
- Timestamp:
- Nov 2, 2018, 4:24:08 PM (2 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
_core_/plugins/svp/inc/svp_actionner.php
r112026 r112276 208 208 * @param string $nom Nom de la librairie 209 209 * @param string $source URL pour obtenir la librairie 210 * @return bool 210 211 */ 211 212 public function add_lib($nom, $source) { … … 747 748 } 748 749 749 if ( isset($this->end) andcount($this->end)) {750 if (count($this->end)) { 750 751 $todo = "<ul>"; 751 752 foreach ($this->end as $i) { … … 884 885 **/ 885 886 public function get_actions() { 886 lire_fichier(_DIR_TMP . 'stp_actions.txt', $contenu); 887 $infos = unserialize($contenu); 888 $this->end = $infos['todo']; 889 $this->work = $infos['work']; 890 $this->done = $infos['done']; 891 $this->err = $infos['err']; 892 $this->lock = $infos['lock']; 887 if ( 888 lire_fichier(_DIR_TMP . 'stp_actions.txt', $contenu) 889 and $contenu 890 and $infos = unserialize($contenu) 891 and is_array($infos) 892 ) { 893 $this->end = $infos['todo']; 894 $this->work = $infos['work']; 895 $this->done = $infos['done']; 896 $this->err = $infos['err']; 897 $this->lock = $infos['lock']; 898 } 893 899 } 894 900 … … 899 905 **/ 900 906 public function nettoyer_actions() { 901 $this-> todo= array();907 $this->end = array(); 902 908 $this->done = array(); 903 909 $this->work = array();
Note: See TracChangeset
for help on using the changeset viewer.