KD2 Framework  Check-in [86764e2ca1]

Overview
Comment:Smartyer: fix issue with magic getter objects
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | trunk | 5.6
Files: files | file ages | folders
SHA1: 86764e2ca15ce28b76e2a9d36fab02855ba00be7
User & Date: bohwaz on 2021-02-12 13:41:29
Other Links: manifest | tags
Context
2023-02-25
14:00
Merge 7.3 branch into trunk check-in: 30b19ee3e2 user: bohwaz tags: trunk
2021-02-12
13:41
Smartyer: fix issue with magic getter objects check-in: 86764e2ca1 user: bohwaz tags: 5.6, trunk
2020-09-08
16:36
Form: fix issue with max/min and numeric strings check-in: c697e94176 user: bohwaz tags: 5.6, trunk
Changes

Modified src/lib/KD2/Smartyer.php from [758d491f8f] to [fb9ce2b34c].

1280
1281
1282
1283
1284
1285
1286
1287

1288
1289
1290
1291
1292
1293
1294
1280
1281
1282
1283
1284
1285
1286

1287
1288
1289
1290
1291
1292
1293
1294







-
+







			{
				// Test for constants
				if (defined(get_class($var) . '::' . $key))
				{
					return constant(get_class($var) . '::' . $key);
				}

				if (!property_exists($var, $key))
				if (!isset($var->$key))
				{
					return null;
				}

				$var = $var->$key;
			}
			elseif (is_array($var))