Ignore:
Timestamp:
12/19/12 16:44:18 (11 years ago)
Author:
douglasz
Message:

Ticket #3236 - Correcoes para Best Practice: Short Open Tag e Best Practice: Always Quote Array Keys.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/phpgwapi/inc/class.vfs_sql.inc.php

    r7655 r7681  
    14111411                                        $newdir = preg_replace("/^$f->fake_full_path/", "$t->fake_full_path", $entry['directory']); 
    14121412                                        $this->cp (array( 
    1413                                                         'from'  => "$entry[directory]/$entry[name]", 
    1414                                                         'to'    => "$newdir/$entry[name]", 
     1413                                                        'from'  => "$entry[directory]/{$entry['name']}", 
     1414                                                        'to'    => "$newdir/{$entry['name']}", 
    14151415                                                        'relatives'     => array ($f->mask, $t->mask) 
    14161416                                                ) 
     
    16511651 
    16521652                                        $query = $GLOBALS['phpgw']->db->query ("UPDATE phpgw_vfs SET directory='". 
    1653                                                 $GLOBALS['phpgw']->db->db_addslashes($newdir_clean)."' WHERE file_id='$entry[file_id]'" . 
     1653                                                $GLOBALS['phpgw']->db->db_addslashes($newdir_clean)."' WHERE file_id='{$entry['file_id']}'" . 
    16541654                                                $this->extra_sql (array ('query_type' => VFS_SQL_UPDATE)), __LINE__, __FILE__); 
    16551655                                        $this->correct_attributes (array( 
    1656                                                         'string'        => "$newdir/$entry[name]", 
     1656                                                        'string'        => "$newdir/{$entry['name']}", 
    16571657                                                        'relatives'     => array ($t->mask) 
    16581658                                                ) 
     
    17821782 
    17831783                                        $this->rm (array( 
    1784                                                         'string'        => "$entry[directory]/$entry[name]", 
     1784                                                        'string'        => "{$entry['directory']}/{$entry['name']}", 
    17851785                                                        'relatives'     => array ($p->mask) 
    17861786                                                ) 
     
    17981798                                        /* Only the best in confusing recursion */ 
    17991799                                        $this->rm (array( 
    1800                                                         'string'        => "$entry[directory]/$entry[name]", 
     1800                                                        'string'        => "{$entry['directory']}/{$entry['name']}", 
    18011801                                                        'relatives'     => array ($p->mask) 
    18021802                                                ) 
Note: See TracChangeset for help on using the changeset viewer.