login/edit: remaining access from user object
[minimedit.git] / widget / login / edit.php
index 829631e875da16065cf069026ea26fbb4364d3da..d8114ff07b065bb8f8b056453442ddc9a0225c7e 100644 (file)
@@ -194,7 +194,7 @@ foreach ($cols as $col => &$colconf) {
        print "\t";
        printf('<li><label for="%s">%s:</label>', $col, ucfirst($colconf['label']));
        if (@$colconf['type'] == 'file' and isset($colconf['value'])) {
-               $target = $user['dir'] . '/' . $colconf['filename'];
+               $target = $user->dir . '/' . $colconf['filename'];
                printf('<a href="/%s"><img src="/thumb/%s/%s?%s" /></a><br />',
                        $target,
                        200, $target, filemtime($target)