mirror of
https://github.com/DanielnetoDotCom/YouPHPTube
synced 2025-10-05 19:42:38 +02:00
This commit is contained in:
parent
627356f850
commit
84c8765d38
1 changed files with 5 additions and 2 deletions
|
@ -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);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue