Subversion Repositories oidplus

Compare Revisions

Regard whitespace Rev 1118 → Rev 1119

/trunk/includes/classes/OIDplusRA.class.php
57,7 → 57,7
$res = OIDplus::db()->query("select ra_name from ###ra where email = ?", array($this->email));
if (!$res->any()) return _L('(RA not in database)');
$row = $res->fetch_array();
return $row['ra_name'];
return $row['ra_name'] ?? '';
}
 
/**
68,7 → 68,7
$out = array();
$res = OIDplus::db()->query("select email from ###ra");
while ($row = $res->fetch_array()) {
$out[] = new OIDplusRA($row['email']);
$out[] = new OIDplusRA($row['email'] ?? '');
}
return $out;
}
/trunk/includes/db_updates/update1002.inc.php
29,7 → 29,7
function oidplus_dbupdate_1002_migrate_ra_passwords(OIDplusDatabaseConnection $db) {
$res = $db->query("select * from ###ra ");
while ($row = $res->fetch_array()) {
$salt = isset($row['salt']) ? $row['salt'] : '';
$salt = $row['salt'] ?? '';
$new_auth_key = vts_crypt_convert_from_old_oidplus($row['authkey'], $salt);
$email = $row['email'];
if ($new_auth_key !== $row['authkey']) {
/trunk/plugins/viathinksoft/objectTypes/oid/OIDplusOid.class.php
368,7 → 368,7
$res_asn = OIDplus::db()->query("select * from ###asn1id where oid = ? order by lfd", array("oid:".$this->oid));
while ($row_asn = $res_asn->fetch_array()) {
$name = $row_asn['name'];
$standardized = $row_asn['standardized'];
$standardized = $row_asn['standardized'] ?? false;
$well_known = $row_asn['well_known'];
$asn_ids[] = new OIDplusOidAsn1Id($name, $standardized, $well_known);
}
384,7 → 384,7
$res_iri = OIDplus::db()->query("select * from ###iri where oid = ? order by lfd", array("oid:".$this->oid));
while ($row_iri = $res_iri->fetch_array()) {
$name = $row_iri['name'];
$longarc = $row_iri['longarc'];
$longarc = $row_iri['longarc'] ?? false;
$well_known = $row_iri['well_known'];
$iri_ids[] = new OIDplusOidIri($name, $longarc, $well_known);
}