Changeset 29 for trunk/Run.php


Ignore:
Timestamp:
Sep 17, 2019, 10:58:51 PM (5 years ago)
Author:
chronos
Message:
  • Added: Show links to previous years for individual runners and teams.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/Run.php

    r3 r29  
    88  var $ChipNumber;
    99
    10   function AddIfNotExist()
     10  function AddIfNotExist($ReturnQuery = false)
    1111  {
    1212    $DbResult = $this->Database->select('Runner', '*',
     
    1414    if ($DbResult->num_rows == 0)
    1515    {
    16       $this->Database->insert('Runner', array(
     16      $Result = $this->Database->GetInsert('Runner', array(
    1717        'Name' => $this->Name,
    1818        'Gender' => $this->Gender,
     
    2020        'ChipNumber' => $this->ChipNumber,
    2121      ));
    22       $Result = 1;
    2322      $this->Id = $this->Database->insert_id;
    2423    } else {
    25       $Result = 0;
    2624      $DbRow = $DbResult->fetch_assoc();
    2725      $this->Id = $DbRow['Id'];
Note: See TracChangeset for help on using the changeset viewer.