[Typo3-dev] moving and improving tslib_pi_base->pi_prependFieldsWithTable to t3lib_db->prependFieldsWithTable

Martin Kutschker martin.kutschker at no5pam.blackbox.net
Fri Apr 15 11:24:26 CEST 2005


Changing argument $fieldList (string) to $fields (mixed):

function prependFieldsWithTable($table,$fields)   {
    if (!is_array($fields))    {
        $list=t3lib_div::trimExplode(',',$fields,1);
    }
    $return=array();
     while(list(,$listItem)=each($list))     {
         $return[]=$table.'.'.$listItem;
     }
      return implode(',',$return);
 }

Masi 






More information about the TYPO3-dev mailing list