I found a tiny bug in Layla template.
In the middle of row 22 in file: j51-layla/html/mod_search/default.php
<input type="hidden" name="Itemid" value="<?php echo $mitemid; ?>" />
It should be:
<input type="hidden" name="Itemid" value="' . $mitemid; . '" />