Plugin Directory

Changeset 2584992


Ignore:
Timestamp:
08/18/2021 04:56:24 PM (5 years ago)
Author:
mottodesignstudio
Message:

Preparing for 1.0.1 release

Location:
blaze-css/trunk
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • blaze-css/trunk/README.txt

    r2584989 r2584992  
    3333== Changelog ==
    3434
     35= 1.0.1 =
     36* Fixed some PHP notices.
     37
    3538= 1.0 =
    3639* First version.
  • blaze-css/trunk/lib/Common/Logger.php

    r2499500 r2584992  
    1818        $this->plugin = $plugin;
    1919        $this->url = (object) parse_url($postData['url']);
     20        if( !isset($this->url->query) )
     21            $this->url->query = null;
     22
    2023        $this->pageQuery = $postData['log'];
    2124    }
     
    6265    {
    6366        $logs = (new Log)->select('*')->where("
    64             host = '{$this->url->host}'
    65             AND path = '{$this->url->path}'
    66         ")->get();
     67            host = %s
     68            AND path = %s
     69        ", [$this->url->host, $this->url->path])->get();
    6770       
    6871        if( !empty($logs) ) {
  • blaze-css/trunk/lib/Common/Model.php

    r2499500 r2584992  
    3434        $where = ['id' => $this->getId()];
    3535
    36         // dd(
    37         //     [
    38         //         $this->getTable(), $data, $where, $format
    39         //     ]
    40         // );
    4136        $this->db->update(
    4237            $this->getTable(), $data, $where, $format
     
    7368    }
    7469
    75     public function where( $where )
     70    public function where( $where, $values = [] )
    7671    {
    7772        $this->query['where'] = $where;
     73        $this->query['values'] = $values;
    7874        return $this;
    7975    }
     
    8682        WHERE {$this->query['where']}
    8783        SQL;
    88         return $this->db->get_results( $this->db->prepare( $sql ) );       
     84
     85        return $this->db->get_results(
     86            $this->db->prepare( $sql, $this->query['values'] )
     87        );
    8988    }
    9089
     
    10099        );
    101100
    102         $this->id = $row->id;
    103         $this->attributes = $row;
     101        if( $row ) {
     102            $this->id = $row->id;
     103            $this->attributes = $row;
     104        }
     105
    104106        return $this;
    105107    }
Note: See TracChangeset for help on using the changeset viewer.