Speed: Avoid sql request if key is empty.
This commit is contained in:
parent
cbfce9e07d
commit
0fd759d695
@ -494,6 +494,9 @@ class Translate {
|
||||
*/
|
||||
function getLabelFromKey($db,$key,$tablename,$fieldkey,$fieldlabel)
|
||||
{
|
||||
// If key empty
|
||||
if ($key == '') return '';
|
||||
|
||||
// Check in cache
|
||||
if (! empty($this->cache_labels[$tablename][$key]))
|
||||
{
|
||||
|
||||
Loading…
Reference in New Issue
Block a user