Bug #718
closedleginon.inc problems
100%
Description
email from Marco Oster:
find attached a small patch for myamiweb or more specific the file
inc/leginon.inc. I had problems converting my old database to the new
database scheme, and tried to set it up differently. Maybe an explicit
hint to the initial setup routines in the manual is helpful :)
I wanted to test the image viewer, but with the initial database from
this setup routine, no picture showed up. I tracked it down to
leginon.inc's getFilename(..) routine which referenced a table in it's
sql query which didn't exist yet (PresetData). With this query
failing, no IDs were filled into the list and no pictures were loaded.
Since the query without the left join to this PresetData table showed
a usable result, I implemented a condition to check for the existence
of that table first.
I think there was also a previous error in the routine,
($has_imageStatusData vs if($has_ImageStatus)) which I sorted out,
too. But I'm not that into php, maybe I was wrong with that.