Keşfet

Handling null conditionals in template engine

XFdestek

Kurucu Üye
Katılım
25 May 2014
Mesajlar
5,372
Tepkime puanı
287
Konum
Türkiye
Web sitesi
fivetu.xyz
Not sure if this should be a discussion or bug, so please move accordingly.

In 2.2.x I had the following in my template.

HTML:

Kod:
Lütfen içeriği görebilmek için Giriş yap yada Kayıt ol to view codes content!

In 2.3.4 I see a type error if $data.items is null, since contains is expecting a value.

Is this a bug where the template engine should check for null values or does the template engine expect types to be strictly enforced...

Lütfen içeriği görebilmek için Giriş yap yada Kayıt ol
 

Konu görüntüleyen kullanıcılar

Geri
Üst Alt