private function cleanTable($table, $json)
    {
        if ($json[$table]["tca"] && count($json[$table]["tca"]) < 1) {
            unset($json[$table]["tca"]);
        }
        if ($json[$table]["sql"] && count($json[$table]["sql"]) < 1) {
            unset($json[$table]["sql"]);
        }
        if ($json[$table] && count($json[$table]) < 1) {
            unset($json[$table]);
        }
        return $json;
    }
private function cleanTable($table, $json)
    {
        if ($json[$table]["tca"] && count($json[$table]["tca"]) < 1) {
            unset($json[$table]["tca"]);
        }
        if ($json[$table]["sql"] && count($json[$table]["sql"]) < 1) {
            unset($json[$table]["sql"]);
        }
        if ($json[$table] && count($json[$table]) < 1) {
            unset($json[$table]);
        }
        return $json;
    }
private function cleanTable ( $ table , $ json ) { if ( $ json [ $ table ] [ "tca" ] && count ( $ json [ $ table ] [ "tca" ] ) < 1 ) { unset ( $ json [ $ table ] [ "tca" ] ) ; } if ( $ json [ $ table ] [ "sql" ] && count ( $ json [ $ table ] [ "sql" ] ) < 1 ) { unset ( $ json [ $ table ] [ "sql" ] ) ; } if ( $ json [ $ table ] && count ( $ json [ $ table ] ) < 1 ) { unset ( $ json [ $ table ] ) ; } return $ json ; }
Deletes all the empty settings of a table

@author Benjamin Butschell <bb@webprofil.at>
@param string $table
@param array $json
@return array
Deletes all the empty settings of a table