Problem with - in mysql_prefix

I you have $conf['mysql_prefix'] = "zp_107-";

then a MySql error occur with '.... near -album ...'

Solution : in function-db.php

function prefix($tablename) {
return "`".zp_conf('mysql_prefix').$tablename."`";
}

Rem : use backticks before and after zp_conf()

Comments

Sign In or Register to comment.