Changeset 7 for includes


Ignore:
Timestamp:
Jun 4, 2008, 11:02:50 AM (16 years ago)
Author:
george
Message:

Opraveno: Nemožnost editace serveru s názvem obsaženým v jiném názvu.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • includes/classes.php

    r1 r7  
    147147    }
    148148  else {
    149     $exist = $db->query_result("SELECT count(*) as pocet FROM `servers` where (`name` like '%".$posted['name']."%' AND NOT `id`=$server_id)");
     149    $exist = $db->query_result("SELECT count(*) as pocet FROM `servers` where (`name` like TRIM('".$posted['name']."') AND NOT `id`=$server_id)");
    150150  if ($exist==1)
    151151    {
Note: See TracChangeset for help on using the changeset viewer.