1
0
Fork 0
mirror of https://github.com/DanielnetoDotCom/YouPHPTube synced 2025-10-05 19:42:38 +02:00
This commit is contained in:
daniel 2019-10-23 12:59:17 -03:00
parent 627356f850
commit 84c8765d38

View file

@ -72,9 +72,12 @@ class Plugin extends ObjectYPT {
}
static function setCurrentVersionByUuid($uuid, $currentVersion){
error_log("plugin::setCurrentVersionByUuid $uuid, $currentVersion");
$p=static::getPluginByUUID($uuid);
if(!$p)
return false;
if(!$p){
error_log("plugin::setCurrentVersionByUuid error on get plugin");
return false;
}
//pluginversion isn't an object property so we must explicity update it using this function
$sql="update ".static::getTableName()." set pluginversion='$currentVersion' where uuid='$uuid'";
$res=sqlDal::writeSql($sql);