mirror of
https://github.com/alchemy-fr/Phraseanet.git
synced 2025-10-17 15:03:25 +00:00
Fix upgrade of feeds
This commit is contained in:
@@ -52,12 +52,15 @@ class Setup_Upgrade
|
||||
public function __construct(appbox &$appbox)
|
||||
{
|
||||
if (self::lock_exists())
|
||||
throw new Exception_Setup_UpgradeAlreadyStarted();
|
||||
{
|
||||
throw new Exception_Setup_UpgradeAlreadyStarted('The upgrade is already started');
|
||||
}
|
||||
|
||||
$this->appbox = $appbox;
|
||||
|
||||
if(count(User_Adapter::get_wrong_email_users($appbox)) > 0)
|
||||
{
|
||||
throw new Exception_Setup_FixBadEmailAddresses();
|
||||
throw new Exception_Setup_FixBadEmailAddresses('Please fix the database before starting');
|
||||
}
|
||||
|
||||
$this->write_lock();
|
||||
|
Reference in New Issue
Block a user