mirror of
				https://github.com/elyby/accounts.git
				synced 2025-05-31 14:11:46 +05:30 
			
		
		
		
	Fixes ACCOUNTS-13, ACCOUNTS-3F. Remove warnings for the cases which are actually happens
This commit is contained in:
		@@ -21,10 +21,8 @@ class Textures {
 | 
				
			|||||||
        $uuid = str_replace('-', '', $this->account->uuid);
 | 
					        $uuid = str_replace('-', '', $this->account->uuid);
 | 
				
			||||||
        $profile = $this->getProfile($signed);
 | 
					        $profile = $this->getProfile($signed);
 | 
				
			||||||
        if ($profile === null) {
 | 
					        if ($profile === null) {
 | 
				
			||||||
            // This case shouldn't happen at all, but until we find out how it'll actually behave,
 | 
					            // This case shouldn't happen at all, but synchronization isn't perfect and sometimes
 | 
				
			||||||
            // provide for a fallback solution
 | 
					            // information might be now updated. Provide fallback solution
 | 
				
			||||||
            Yii::warning("By some reasons there is no profile for \"{$this->account->username}\".");
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
            $profile = [
 | 
					            $profile = [
 | 
				
			||||||
                'name' => $this->account->username,
 | 
					                'name' => $this->account->username,
 | 
				
			||||||
                'id' => $uuid,
 | 
					                'id' => $uuid,
 | 
				
			||||||
@@ -52,7 +50,6 @@ class Textures {
 | 
				
			|||||||
            }
 | 
					            }
 | 
				
			||||||
        } elseif ($profile['id'] !== $uuid) {
 | 
					        } elseif ($profile['id'] !== $uuid) {
 | 
				
			||||||
            // Also a case that shouldn't happen, but is technically possible
 | 
					            // Also a case that shouldn't happen, but is technically possible
 | 
				
			||||||
            Yii::warning("By an unknown reason username \"{$this->account->username}\" has an invalid id from chrly");
 | 
					 | 
				
			||||||
            $profile['id'] = $uuid;
 | 
					            $profile['id'] = $uuid;
 | 
				
			||||||
        }
 | 
					        }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user