textlab / glossa-foni-cgibin

0 stars 0 forks source link

SQL error in show_context for OMC4 #17

Closed andrely closed 11 years ago

andrely commented 11 years ago

OMC4 has no meta_author config value, so the last call SQL query in show_context.cgi bugs out.

This query should be skipped if there's no meta_author value in %conf.

From the log:

[Fri Feb 15 14:11:01 2013] [error] [client 193.157.192.168] DBD::mysql::st execute failed: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'FROM OMC4author WHERE OMC4author.tid='AAS1N'' at line 1 at /site/opt/apache2.2/cgi-bin/glossa-andrely-dev/glossa/show_context.cgi line 190, line 19., referer: http://tekstlab.uio.no/cgi-bin/glossa-andrely-dev/glossa//query_dev.cgi

andrely commented 11 years ago

fixed in 43c739690f072ad9d6a1563e1660086b8659a875