Ignore:
Timestamp:
Apr 6, 2020, 11:56:19 PM (4 years ago)
Author:
chronos
Message:
  • Modified: Do not use parenthesis around returned value.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/Modules/Map/Map.php

    r873 r874  
    1414  {
    1515    if (!$this->System->User->CheckPermission('Map', 'Show'))
    16       return ('Nemáte oprávnění');
     16      return 'Nemáte oprávnění';
    1717
    1818    if (count($this->System->PathItems) > 1)
    1919    {
    20       if ($this->System->PathItems[1] == 'show-position') return ($this->ShowPosition());
    21       else return (PAGE_NOT_FOUND);
    22     } else return ($this->ShowMain());
     20      if ($this->System->PathItems[1] == 'show-position') return $this->ShowPosition();
     21      else return PAGE_NOT_FOUND;
     22    } else return $this->ShowMain();
    2323  }
    2424
     
    4040      $MapApi->Markers[] = $Marker;
    4141      $Output = $MapApi->ShowPage($this);
    42       return ($Output);
    43     } else return ('Položka nenalezena');
     42      return $Output;
     43    } else return 'Položka nenalezena';
    4444  }
    4545
     
    236236                </table>';
    237237    */
    238     return ($Output);
     238    return $Output;
    239239  }
    240240}
     
    249249        'onclick="return popupwindow(&quot;'.$this->FormManager->Root.'/is/?a=mapselect&amp;r='.
    250250        $Item['Name'].'&quot;,&quot;test&quot;);" style="cursor:hand;cursor:pointer"/>';
    251     return ($Output);
     251    return $Output;
    252252  }
    253253}
Note: See TracChangeset for help on using the changeset viewer.