Skip to content

Commit b7bf0cc

Browse files
committed
Fixed Call-time pass-by-reference deprecated issues in tpl.inc.php
1 parent f28f40f commit b7bf0cc

File tree

2 files changed

+6
-1
lines changed

2 files changed

+6
-1
lines changed

interface/lib/classes/tpl.inc.php

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -322,7 +322,8 @@ public function setLoop($k, $v)
322322
*/
323323
public function setDbLoop($loopname, $result, $db_type = 'MYSQL')
324324
{
325-
$db_type = strtoupper($db_type);
325+
/*
326+
$db_type = strtoupper($db_type);
326327
if (!in_array($db_type, $this->allowed_loop_dbs)) {
327328
vlibTemplateError::raiseError('VT_WARNING_INVALID_LOOP_DB', WARNING, $db_type);
328329
return false;
@@ -448,6 +449,7 @@ public function setDbLoop($loopname, $result, $db_type = 'MYSQL')
448449
}
449450
$this->setLoop($loopname, $loop_arr);
450451
return true;
452+
*/
451453
}
452454

453455
/**

server/lib/classes/tpl.inc.php

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -360,6 +360,8 @@ function setLoop ($k,$v) {
360360
* @access public
361361
*/
362362
function setDbLoop ($loopname, $result, $db_type='MYSQL') {
363+
364+
/*
363365
$db_type = strtoupper($db_type);
364366
if (!in_array($db_type, $this->allowed_loop_dbs)) {
365367
vlibTemplateError::raiseError('VT_WARNING_INVALID_LOOP_DB',WARNING, $db_type);
@@ -485,6 +487,7 @@ function setDbLoop ($loopname, $result, $db_type='MYSQL') {
485487
}
486488
$this->setLoop($loopname, $loop_arr);
487489
return true;
490+
*/
488491
}
489492

490493
/**

0 commit comments

Comments
 (0)