Commits vergleichen

..

Keine gemeinsamen Commits. "df76ce462ae8a725f8684187cd69513d8fbd99a1" und "1419bbf7019b094901219981ab38dbfe3dcc825b" haben vollständig unterschiedliche Historien.

4 geänderte Dateien mit 13 neuen und 22 gelöschten Zeilen

Datei anzeigen

@ -185,8 +185,7 @@ class DB_Sql extends DB_Sql_Abstract {
/**
* @see DB_Sql_Abstract::next_record()
*/
public function next_record(): bool|int
{
public function next_record() {
if (!$this->Query_ID instanceof mysqli_result) {
return false;
}

Datei anzeigen

@ -80,20 +80,16 @@ class DB_ConLite extends DB_Sql {
/**
* Fetches the next recordset from result set
*
* @deprecated since ConLite 2.3
* @param bool
*/
public function next_record(): bool|int
{
return $this->nextRecord();
}
public function nextRecord(): bool|int
{
$currentModule = cRegistry::getCurrentModule();
public function next_record() {
global $cCurrentModule;
// FIXME For what reason is NoRecord used???
$this->NoRecord = false;
if (!$this->Query_ID) {
if ($currentModule > 0) {
$this->halt("next_record called with no query pending in Module ID $currentModule.");
$this->NoRecord = true;
if ($cCurrentModule > 0) {
$this->halt("next_record called with no query pending in Module ID $cCurrentModule.");
} else {
$this->halt("next_record called with no query pending.");
}

Datei anzeigen

@ -219,11 +219,6 @@ class cRegistry {
return self::_fetchGlobalVariable('edit', FALSE);
}
public static function getCurrentModule()
{
return self::_fetchGlobalVariable('cCurrentModule', 0);
}
/**
* Fetches the global variable requested.
* If variable is not set, the default value is returned.
@ -251,4 +246,5 @@ class cRegistry {
return new $apiClassName($objectId);
}
}
}
?>

Datei anzeigen

@ -601,8 +601,8 @@ function isAnimGif($sFile) {
*
* @return string Path to the resulting image
*/
function capiImgScale($img, $maxX, $maxY, $crop = false, $expand = false, $cacheTime = 10, $wantHQ = false, $quality = 75, $keepType = true) {
global $client, $cfgClient;
function capiImgScale($img, $maxX, $maxY, $crop = false, $expand = false, $cacheTime = 10, $wantHQ = false, $quality = 75, $keepType = false) {
global $client, $db, $cfg, $cfgClient;
$deleteAfter = false;