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.asyncservice.inc.php

    r6057 r7681  
    522522                        if ($exists || $this->read($job['id'])) 
    523523                        { 
    524                                 $this->db->query("UPDATE $this->db_table SET next=$job[next],times='$job[times]',". 
    525                                         "method='$job[method]',data='$job[data]',account_id=$job[account_id] WHERE id='$job[id]'",__LINE__,__FILE__); 
     524                                $this->db->query("UPDATE $this->db_table SET next={$job['next']},times='{$job['times']}',". 
     525                                        "method='{$job['method']}',data='{$job['data']}',account_id={$job['account_id']} WHERE id='{$job['id']}'",__LINE__,__FILE__); 
    526526                        } 
    527527                        else 
    528528                        { 
    529529                                $this->db->query("INSERT INTO $this->db_table (id,next,times,method,data,account_id) VALUES ". 
    530                                         "('$job[id]',$job[next],'$job[times]','$job[method]','$job[data]',$job[account_id])",__LINE__,__FILE__); 
     530                                        "('{$job['id']}',{$job['next']},'{$job['times']}','{$job['method']}','{$job['data']}',{$job['account_id']})",__LINE__,__FILE__); 
    531531                        } 
    532532                } 
Note: See TracChangeset for help on using the changeset viewer.