|
[geeklog-cvs] geeklog: E_ALL fixes: msg#00034geeklog-cvs
details: http://project.geeklog.net/cgi-bin/hgweb.cgi/rev/80dd75e48446 changeset: 7195:80dd75e48446 user: Dirk Haun <dirk@xxxxxxxxxxxxxx> date: Wed Jul 29 10:58:19 2009 +0200 description: E_ALL fixes diffstat: public_html/submit.php | 9 +++++---- system/classes/story.class.php | 6 +++++- 2 files changed, 10 insertions(+), 5 deletions(-) diffs (35 lines): diff -r 9100c5b15c9d -r 80dd75e48446 public_html/submit.php --- a/public_html/submit.php Mon Jul 27 21:39:26 2009 +0200 +++ b/public_html/submit.php Wed Jul 29 10:58:19 2009 +0200 @@ -390,10 +390,11 @@ // note that 'type' _may_ come in through $_GET even when the // other parameters are in $_POST -if (isset ($_POST['type'])) { - $type = COM_applyFilter ($_POST['type']); -} else { - $type = COM_applyFilter ($_GET['type']); +$type = ''; +if (isset($_POST['type'])) { + $type = COM_applyFilter($_POST['type']); +} elseif (isset($_GET['type'])) { + $type = COM_applyFilter($_GET['type']); } $mode = ''; diff -r 9100c5b15c9d -r 80dd75e48446 system/classes/story.class.php --- a/system/classes/story.class.php Mon Jul 27 21:39:26 2009 +0200 +++ b/system/classes/story.class.php Wed Jul 29 10:58:19 2009 +0200 @@ -949,7 +949,11 @@ $this->_trackbackcode = $_CONF['trackback_code']; $this->_statuscode = 0; $this->_show_topic_icon = $_CONF['show_topic_icon']; - $this->_owner_id = $_USER['uid']; + if (isset($_USER['uid'])) { + $this->_owner_id = $_USER['uid']; + } else { + $this->_owner_id = 1; + } $this->_group_id = $T['group_id']; $this->_perm_owner = $T['perm_owner']; $this->_perm_group = $T['perm_group']; _______________________________________________ geeklog-cvs mailing list geeklog-cvs@xxxxxxxxxxxxxxxxx http://eight.pairlist.net/mailman/listinfo/geeklog-cvs
|
|
||||||||||||||||||||||||||
|
|
|
| News | Mail Home | sitemap | FAQ | advertise |