Created
December 18, 2018 21:39
-
-
Save jonatanfroes/ef4f199a8a4804d42a48e4cdead3f731 to your computer and use it in GitHub Desktop.
fix login required
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
Jonatan Froes <[email protected]> | |
1. on InstagramController.php, remove this line: | |
$Account->set("login_required", 1)->update(); | |
*/ | |
/* | |
2. add this lines: | |
*/ | |
$message = strtolower($msg); | |
if(strpos($strtolower($msg), "login required") === false) { | |
//another error, not login required | |
} else { | |
$Account->set("login_required", 1)->update(); | |
} | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
plz fix this error
$strtolower to strtolower