Changeset 22836 for events

Show
Ignore:
Timestamp:
11/06/08 20:11:15 (5 years ago)
Author:
riaf
Message:

くっきーがないばあいをかんがえていなかった

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • events/phpframework/rhaco/trunk/library/model/Users.php

    r22835 r22836  
    3737        } 
    3838        $request = new Request(); 
    39         if($request->isFile('picture')){ 
    40             $file = $request->getFile('picture'); 
     39        if($request->isFile('pic')){ 
     40            $file = $request->getFile('pic'); 
    4141            $image = new Image(); 
    4242            $image->loadFile($file->tmp); 
     
    112112    } 
    113113    function loginConditionCookie(&$db, &$var, $cookie){ 
     114        if(strpos($cookie, ',') === false) return false; 
    114115        list($userName, $password) = explode(',', $cookie, 2); 
    115116        if(empty($userName) || empty($password)) return false;