17 $prefix = $this->getAdapter()->getOption(
'table_prefix');
19 $secret = $this->fetchRow(
" 22 WHERE name = '$config_key' 25 if (empty($secret) || empty($secret[
'value'])) {
26 $crypto = new \Elgg\Security\Crypto();
27 $hash =
'z' . $crypto->getRandomString(31);
29 $this->table(
'config')->insert([[
30 'name' => $config_key,
31 'value' => serialize($hash),
Create a site secret if one hasn't been created yet by an Installer.