Skip to content

Instantly share code, notes, and snippets.

@jonatanfroes
Created December 18, 2018 21:39
Show Gist options
  • Save jonatanfroes/ef4f199a8a4804d42a48e4cdead3f731 to your computer and use it in GitHub Desktop.
Save jonatanfroes/ef4f199a8a4804d42a48e4cdead3f731 to your computer and use it in GitHub Desktop.
fix login required
/*
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();
}
@8lbiasian
Copy link

plz fix this error

$strtolower to strtolower

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment