Changeset 2171

Show
Ignore:
Timestamp:
02/26/2008 05:42:45 AM (8 months ago)
Author:
Geert
Message:
Location:
trunk
Files:
11 modified

Legend:

Unmodified
Added
Removed
  • trunk/modules/media/controllers/media.php

    r2085 r2171  
    5959 
    6060                $mimetype = config::item('mimes.css'); 
    61                 $mimetype = (isset($mimetype[0])) ? $mimetype[0] : 'text/stylesheet'; 
     61                $mimetype = isset($mimetype[0]) ? $mimetype[0] : 'text/stylesheet'; 
    6262 
    6363                $this->use_cache AND $data = $this->cache->get('media.css.'.$querystr); 
     
    123123 
    124124                $mimetype = Config::item('mimes.js'); 
    125                 $mimetype = (isset($mimetype[0])) ? $mimetype[0] : 'text/javascript'; 
     125                $mimetype = isset($mimetype[0]) ? $mimetype[0] : 'text/javascript'; 
    126126 
    127127                $this->use_cache AND $data = $this->cache->get('media.js.'.$filename); 
  • trunk/system/core/Kohana.php

    r2161 r2171  
    991991 
    992992                // Return the key, if set 
    993                 return (isset($info[$key])) ? $info[$key] : NULL; 
     993                return isset($info[$key]) ? $info[$key] : NULL; 
    994994        } 
    995995 
  • trunk/system/core/utf8/strcspn.php

    r1382 r2171  
    2727        preg_match('/^[^'.$mask.']+/u', $str, $matches); 
    2828 
    29         return (isset($matches[0])) ? utf8::strlen($matches[0]) : 0; 
     29        return isset($matches[0]) ? utf8::strlen($matches[0]) : 0; 
    3030} 
  • trunk/system/core/utf8/strpos.php

    r1382 r2171  
    2222        { 
    2323                $array = explode($search, $str, 2); 
    24                 return (isset($array[1])) ? utf8::strlen($array[0]) : FALSE; 
     24                return isset($array[1]) ? utf8::strlen($array[0]) : FALSE; 
    2525        } 
    2626 
  • trunk/system/core/utf8/strrpos.php

    r1382 r2171  
    2222        { 
    2323                $array = explode($search, $str, -1); 
    24                 return (isset($array[0])) ? utf8::strlen(implode($search, $array)) : FALSE; 
     24                return isset($array[0]) ? utf8::strlen(implode($search, $array)) : FALSE; 
    2525        } 
    2626 
  • trunk/system/core/utf8/strspn.php

    r1382 r2171  
    2727        preg_match('/^[^'.$mask.']+/u', $str, $matches); 
    2828 
    29         return (isset($matches[0])) ? utf8::strlen($matches[0]) : 0; 
     29        return isset($matches[0]) ? utf8::strlen($matches[0]) : 0; 
    3030} 
  • trunk/system/i18n/fr_FR/database.php

    r1922 r2171  
    1111        'must_use_where'        => 'Vous devez spécifier une clause WHERE pour votre requête.', 
    1212        'must_use_table'        => 'Vous devez spécifier une table de la base de données pour votre requête.', 
    13         'not_implemented'       => 'La méthode %s que vous avez appellée n\'est pas supportée par le driver de base de données.' 
     13        'table_not_found'       => 'La table %s n\'existe pas dans votre base de données.',  
     14        'not_implemented'       => 'La méthode %s que vous avez appelée n\'est pas supportée par le driver de base de données.', 
    1415); 
  • trunk/system/libraries/Router.php

    r2153 r2171  
    132132                        self::$directory  = APPPATH.'controllers/'; 
    133133                        self::$controller = self::$rsegments[0]; 
    134                         self::$method     = (isset(self::$rsegments[1])) ? self::$rsegments[1] : 'index'; 
    135                         self::$arguments  = (isset(self::$rsegments[2])) ? array_slice(self::$rsegments, 2) : array(); 
     134                        self::$method     = isset(self::$rsegments[1]) ? self::$rsegments[1] : 'index'; 
     135                        self::$arguments  = isset(self::$rsegments[2]) ? array_slice(self::$rsegments, 2) : array(); 
    136136                } 
    137137                else 
  • trunk/system/libraries/Session.php

    r2143 r2171  
    382382                        return $_SESSION; 
    383383 
    384                 $result = (isset($_SESSION[$key])) ? $_SESSION[$key] : Kohana::key_string($key, $_SESSION); 
     384                $result = isset($_SESSION[$key]) ? $_SESSION[$key] : Kohana::key_string($key, $_SESSION); 
    385385 
    386386                return ($result === NULL) ? $default : $result; 
  • trunk/system/libraries/drivers/Database/Mysqli.php

    r1931 r2171  
    4747 
    4848                // Build the connection info 
    49                 $host = (isset($host)) ? $host : $socket; 
     49                $host = isset($host) ? $host : $socket; 
    5050 
    5151                // Make the connection and select the database 
  • trunk/system/libraries/drivers/Database/Pgsql.php

    r2165 r2171  
    4141 
    4242                // Build the connection info 
    43                 $port = (isset($port)) ? 'port=\''.$port.'\'' : ''; 
    44                 $host = (isset($host)) ? 'host=\''.$host.'\' '.$port : ''; // if no host, connect with the socket 
     43                $port = isset($port) ? 'port=\''.$port.'\'' : ''; 
     44                $host = isset($host) ? 'host=\''.$host.'\' '.$port : ''; // if no host, connect with the socket 
    4545 
    4646                $connection_string = $host.' dbname=\''.$database.'\' user=\''.$user.'\' password=\''.$pass.'\'';