aboutsummaryrefslogtreecommitdiffstats
path: root/admin/history.php
diff options
context:
space:
mode:
authorrvelices <rv-github@modusoptimus.com>2007-02-15 03:03:16 +0000
committerrvelices <rv-github@modusoptimus.com>2007-02-15 03:03:16 +0000
commitceb77253c30a0d0fb37d883685f0501d588caf78 (patch)
tree07cb5609ed2c7a075f0555ce7369e6d575a5ac1e /admin/history.php
parent11714951b33d340f13400aa8fc9a2b971f8d8e8b (diff)
- plugins: added new action user_init
- put in a new admin_multi_view:allows admins to change on the fly language/theme and view gallery as guest (useful for developers and just to show a 'new' way of using plugins) - removed some warnings from history.php and increased table width to 99% - remove unused admin language strings git-svn-id: http://piwigo.org/svn/trunk@1821 68402e56-0260-453c-a942-63ccdbb3a9ee
Diffstat (limited to 'admin/history.php')
-rw-r--r--admin/history.php12
1 files changed, 8 insertions, 4 deletions
diff --git a/admin/history.php b/admin/history.php
index 516e940cf..a4e2fddaa 100644
--- a/admin/history.php
+++ b/admin/history.php
@@ -258,7 +258,7 @@ SELECT
$result = pwg_query($query);
$history_lines = $user_ids = $category_ids = $image_ids = array();
- while ($row = mysql_fetch_array($result))
+ while ($row = mysql_fetch_assoc($result))
{
$user_ids[$row['user_id']] = 1;
@@ -340,13 +340,17 @@ SELECT id, IF(name IS NULL, file, name) AS label
,
'IP' => $line['IP'],
'IMAGE' => isset($line['image_id'])
- ? $label_of_image[$line['image_id']]
+ ? ( isset($label_of_image[$line['image_id']])
+ ? $label_of_image[$line['image_id']]
+ : 'deleted '.$line['image_id'])
: $line['image_id'],
'SECTION' => $line['section'],
'CATEGORY' => isset($line['category_id'])
- ? $name_of_category[$line['category_id']]
+ ? ( isset($name_of_category[$line['category_id']])
+ ? $name_of_category[$line['category_id']]
+ : 'deleted '.$line['category_id'] )
: '',
- 'TAG' => $line['tag_ids'],
+ 'TAGS' => $line['tag_ids'],
'T_CLASS' => ($i++ % 2) ? 'row1' : 'row2',
)
);