Fixed Invalid ID

This commit is contained in:
hakasenyang
2017-04-10 02:57:33 +09:00
parent 5bd5a9b96d
commit 294c8f0329
2 changed files with 12 additions and 1 deletions
+4 -1
View File
@@ -96,8 +96,11 @@
$this->data_profile = $this->Parser->WEBParsing('https://osu.ppy.sh/u/' . $osuid);
$this->OsuID = $this->Parser->splits($this->data_profile, 'var userId = ', ';');
$this->RealID = $this->Parser->splits($this->data_profile, '<title>', '\'s profile</title>');
if(empty($this->OsuID))
if(empty($this->OsuID) || empty($this->RealID))
{
$this->ResetObject();
return false;
}
$this->Occupation = $this->Parser->splits($this->data_profile, '<div title=\'Occupation\'><i class=\'icon-pencil\'></i><div>', '</div></div>');