Commit 5c797b77 authored by Richard Mansfield's avatar Richard Mansfield
Browse files

Attempt to fix missing column problem

parent 70923f6c
......@@ -29,7 +29,8 @@ define('MENUITEM', 'myfiles');
require(dirname(dirname(dirname(__FILE__))) . '/init.php');
safe_require('artefact', 'file');
$strings = array('cancel', 'delete', 'description', 'edit', 'editfile', 'editfolder', 'home', 'name', 'nofilesfound', 'savechanges');
$strings = array('cancel', 'delete', 'description', 'edit', 'editfile', 'editfolder',
'home', 'name', 'nofilesfound', 'savechanges');
$getstring = array();
foreach ($strings as $string) {
$getstring[$string] = "'" . get_string($string) . "'";
......
......@@ -44,9 +44,10 @@ else {
$prefix = get_config('dbprefix');
$filedata = get_records_sql_array('SELECT a.id, a.artefacttype, a.mtime, f.size, a.title, a.description
FROM ' . $prefix . 'artefact a
INNER JOIN ' . $prefix . 'artefact_file_files f ON f.artefact = a.id
LEFT OUTER JOIN ' . $prefix . 'artefact_file_files f ON f.artefact = a.id
WHERE a.owner = ' . $userid . '
AND a.parent' . $infolder, '');
AND a.parent' . $infolder . "
AND a.artefacttype IN ('folder','file','image')", '');
if (!$filedata) {
$filedata = array();
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment