Changeset 1805
- Timestamp:
- 05/02/06 04:16:58 (7 years ago)
- Files:
-
- modules/branches/2.1/pinsets/functions.inc.php (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
modules/branches/2.1/pinsets/functions.inc.php
r1793 r1805 8 8 // files named like pinset_N 9 9 function get_filename() { 10 foreach (array_keys($this->_pinsets) as $pinset) { 11 $files[] = 'pinset_'.$pinset; 10 $files = array; 11 if (isset($this->_pinsets) && is_array($this->_pinsets)) { 12 foreach (array_keys($this->_pinsets) as $pinset) { 13 $files[] = 'pinset_'.$pinset; 14 } 15 return $files; 16 } else { 17 return null; 12 18 } 13 return $files;14 19 } 15 20 … … 19 24 20 25 // return the output that goes in each of the files 21 function generateConf( $file) {26 function generateConf() { 22 27 $setid = ltrim($file,'pinset_'); 23 28 $output = $this->_pinsets[$setid];
