You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: tbs_class.php
+4-7Lines changed: 4 additions & 7 deletions
Original file line number
Diff line number
Diff line change
@@ -16,7 +16,6 @@
16
16
17
17
// Check PHP version
18
18
if (version_compare(PHP_VERSION,'5.0')<0) echo'<br><b>TinyButStrong Error</b> (PHP Version Check) : Your PHP version is '.PHP_VERSION.' while TinyButStrong needs PHP version 5.0 or higher. You should try with TinyButStrong Edition for PHP 4.';
19
-
/* COMPAT#1 */
20
19
21
20
// Render flags
22
21
define('TBS_NOTHING', 0);
@@ -220,10 +219,10 @@ public function DataOpen(&$Query,$QryPrms=false) {
220
219
case0: // Array
221
220
if (($this->SubType===1) && (is_string($Query))) $this->SubType = 2;
222
221
if ($this->SubType===0) {
223
-
$this->RecSet = &$this->SrcId;/* COMPAT#2 */
222
+
$this->RecSet = &$this->SrcId;
224
223
} elseif ($this->SubType===1) {
225
224
if (is_array($Query)) {
226
-
$this->RecSet = &$Query;/* COMPAT#3 */
225
+
$this->RecSet = &$Query;
227
226
} else {
228
227
$this->DataAlert('type \''.gettype($Query).'\' not supported for the Query Parameter going with \'array\' Source Type.');
229
228
}
@@ -247,7 +246,7 @@ public function DataOpen(&$Query,$QryPrms=false) {
247
246
}
248
247
} else {
249
248
if (isset($this->TBS->VarRef[$Item0])) {
250
-
$Var = &$this->TBS->VarRef[$Item0];/* COMPAT#4 */
249
+
$Var = &$this->TBS->VarRef[$Item0];
251
250
$i = 1;
252
251
} else {
253
252
$i = $this->DataAlert('invalid query \''.$Query.'\' because VarRef item \''.$Item0.'\' is not found.');
@@ -608,7 +607,7 @@ private function _DataFetchOn($obj) {
0 commit comments