Changeset 1805

Show
Ignore:
Timestamp:
05/02/06 04:16:58 (7 years ago)
Author:
qldrob
Message:

Cleaning up warnings... One day, I'll get all of them, those wasklely warnings!

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • modules/branches/2.1/pinsets/functions.inc.php

    r1793 r1805  
    88  // files named like pinset_N 
    99  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; 
    1218    } 
    13     return $files; 
    1419  } 
    1520   
     
    1924   
    2025  // return the output that goes in each of the files 
    21   function generateConf($file) { 
     26  function generateConf() { 
    2227    $setid = ltrim($file,'pinset_'); 
    2328    $output = $this->_pinsets[$setid];