X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=classes%2FConfig.php;h=2e8492849c4b9f68abb1586aad52f9406e9c81f2;hb=b53e1439969bfa2c0b551d8cc2fc8fe15652c62a;hp=33a556e579752324a6af0fef5e640691522fc8e3;hpb=3ba6374b9d63852d122b792f923208fb720da5f3;p=quix0rs-gnu-social.git diff --git a/classes/Config.php b/classes/Config.php index 33a556e579..2e8492849c 100644 --- a/classes/Config.php +++ b/classes/Config.php @@ -35,7 +35,7 @@ class Config extends Managed_DataObject public $__table = 'config'; // table name public $section; // varchar(32) primary_key not_null public $setting; // varchar(32) primary_key not_null - public $value; // varchar(255) + public $value; // varchar(191) not 255 because utf8mb4 takes more space /* the code above is auto generated do not remove the tag below */ ###END_AUTOCODE @@ -46,7 +46,7 @@ class Config extends Managed_DataObject 'fields' => array( 'section' => array('type' => 'varchar', 'length' => 32, 'not null' => true, 'default' => '', 'description' => 'configuration section'), 'setting' => array('type' => 'varchar', 'length' => 32, 'not null' => true, 'default' => '', 'description' => 'configuration setting'), - 'value' => array('type' => 'varchar', 'length' => 255, 'description' => 'configuration value'), + 'value' => array('type' => 'varchar', 'length' => 191, 'description' => 'configuration value'), ), 'primary key' => array('section', 'setting'), ); @@ -115,10 +115,10 @@ class Config extends Managed_DataObject return $result; } - function delete() + function delete($useWhere=false) { - $result = parent::delete(); - if ($result) { + $result = parent::delete($useWhere); + if ($result !== false) { Config::_blowSettingsCache(); } return $result;