Changeset 10 for trunk/Modules/Ride


Ignore:
Timestamp:
Jun 1, 2023, 1:31:28 AM (19 months ago)
Author:
chronos
Message:
  • Fixed: More class type casting.
Location:
trunk/Modules/Ride
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/Modules/Ride/PageNewRide.php

    r8 r10  
    6161          'LEFT JOIN CarModel ON CarModel.Id=Car.Model '.
    6262          'LEFT JOIN CarManufacturer ON CarManufacturer.Id = CarModel.Manufacturer '.
    63           'WHERE Car.Owner='.$this->System->User->User['Id']);
     63          'WHERE Car.Owner='.Core::Cast($this->System)->User->User['Id']);
    6464        while ($DbRow = $DbResult->fetch_assoc())
    6565        {
     
    115115      if ($_GET['step'] == '3') {
    116116        $this->Database->insert('Ride', array(
    117           'Driver' => $this->System->User->User['Id'],
     117          'Driver' => Core::Cast($this->System)->User->User['Id'],
    118118          'SeatCount' => $_POST['seats'],
    119119          'Car' => $_POST['car'],
  • trunk/Modules/Ride/PageRideDetail.php

    r8 r10  
    108108        $this->System->Database->insert('Passenger', array(
    109109          'Ride' => $_POST['id'],
    110           'User' => $this->System->User->User['Id'],
     110          'User' => Core::Cast($this->System)->User->User['Id'],
    111111          'SeatCount' => $_POST['seats'],
    112112          'RideStopFrom' => $_POST['fromid'],
Note: See TracChangeset for help on using the changeset viewer.