undebug
	
		
			
	
		
	
	
		
	
		
			All checks were successful
		
		
	
	
		
			
				
	
				Build and push / Pulling repo on server (push) Successful in 3s
				
					
					
				
			
		
		
	
	
				
					
				
			
		
			All checks were successful
		
		
	
	Build and push / Pulling repo on server (push) Successful in 3s
				This commit is contained in:
		| @@ -126,7 +126,7 @@ class Model { | |||||||
|         { |         { | ||||||
|             $value = $GLOBALS['redis']->hget($this->dbTable.':'.$this->id,$key); |             $value = $GLOBALS['redis']->hget($this->dbTable.':'.$this->id,$key); | ||||||
|  |  | ||||||
|             var_dump("BEFORE[".$this->dbTable.':'.$this->id."] Loading from DB $key: '$value'"); |             //var_dump("BEFORE[".$this->dbTable.':'.$this->id."] Loading from DB $key: '$value'"); | ||||||
|  |  | ||||||
|             if($value!==NULL) //we'll leave null values alone |             if($value!==NULL) //we'll leave null values alone | ||||||
|                 switch($this->dbFields[$key]['type']) |                 switch($this->dbFields[$key]['type']) | ||||||
| @@ -142,7 +142,7 @@ class Model { | |||||||
|                             $value = json_decode($value,true); |                             $value = json_decode($value,true); | ||||||
|                     break; |                     break; | ||||||
|                 } |                 } | ||||||
|             var_dump("AFTER[".$this->dbTable.':'.$this->id."] Loading from DB $key: '$value'"); |             //var_dump("AFTER[".$this->dbTable.':'.$this->id."] Loading from DB $key: '$value'"); | ||||||
|             $this->data[$key] = $value; |             $this->data[$key] = $value; | ||||||
|         } |         } | ||||||
|  |  | ||||||
|   | |||||||
| @@ -26,10 +26,11 @@ class User extends Model { | |||||||
|         if(!$this->id) return false; |         if(!$this->id) return false; | ||||||
|         $this->load(); |         $this->load(); | ||||||
|         $this->last_login = $this->getDateTime(); |         $this->last_login = $this->getDateTime(); | ||||||
|         $this->save(); |  | ||||||
|  |  | ||||||
|         $_SESSION['user'] = $this; |         $_SESSION['user'] = $this; | ||||||
|         $_SESSION['userid'] = $this->id; |         $_SESSION['userid'] = $this->id; | ||||||
|  |  | ||||||
|  |         $_SESSION['user']->save(); | ||||||
|     } |     } | ||||||
|  |  | ||||||
|     function logout() |     function logout() | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user