MantisBT - Piwigo
View Issue Details
0002909Piwigousers & groupspublic2013.05.29 22:492013.05.29 22:52
plg 
plg 
normalminorhave not tried
closedfixed 
2.5.1 
2.5.22.5.2 
any
Apache 1.3.x
0002909: give permission on an empty list of albums produces SQL error
On screen [Administration > Users > Manage], "lock" icon of the user line: if you click on "<<" (give permission) without selecting any album, it produces:

Notice: Undefined index: cat_false in .../admin/user_perm.php on line 69

Warning: [mysql error 1064] 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 ')' at line 3

SELECT uppercats
  FROM categories
  WHERE id IN ()
; in .../include/dblayer/functions_mysqli.inc.php on line 834

Fatal error: Call to a member function fetch_assoc() on a non-object in .../include/dblayer/functions_mysqli.inc.php on line 181
No tags attached.
Issue History
2013.05.29 22:49plgNew Issue
2013.05.29 22:49plgStatusnew => assigned
2013.05.29 22:49plgAssigned To => plg
2013.05.29 22:49plgbrowser => any
2013.05.29 22:49plgWeb server => Apache 1.3.x
2013.05.29 22:51svnCheckin
2013.05.29 22:51svnNote Added: 0007010
2013.05.29 22:52svnCheckin
2013.05.29 22:52svnNote Added: 0007011
2013.05.29 22:52plgStatusassigned => closed
2013.05.29 22:52plgResolutionopen => fixed
2013.05.29 22:52plgFixed in Version => 2.5.2

Notes
(0007010)
svn   
2013.05.29 22:51   
[Subversion] r22949 by plg on branch 2.5

-----[Subversion commit log]----------------------------------------------------
bug 2909 fixed: make sure the selection of private album is not empty before
adding permission to user. The good test had been removed in r11729
(0007011)
svn   
2013.05.29 22:52   
[Subversion] r22950 by plg on trunk

-----[Subversion commit log]----------------------------------------------------
merge r22949 from branch 2.5 to trunk

bug 2909 fixed: make sure the selection of private album is not empty before
adding permission to user. The good test had been removed in r11729