Update of /cvsroot/php-blog/serendipity/plugins/serendipity_plugin_shoutbox
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv10650/plugins/serendipity_plugin_shoutbox
Modified Files:
Tag: branch-smarty
serendipity_plugin_shoutbox.php
Log Message:
* fixed entryproperties caching (cough, cough)
* fixed recent entries plugin (variable garbage)
* fixed some E_NOTICE errors to be nicer to PHP's error reporting
Index: serendipity_plugin_shoutbox.php
===================================================================
RCS file: /cvsroot/php-blog/serendipity/plugins/serendipity_plugin_shoutbox/serendipity_plugin_shoutbox.php,v
retrieving revision 1.10.2.4
retrieving revision 1.10.2.5
diff -u -d -r1.10.2.4 -r1.10.2.5
--- serendipity_plugin_shoutbox.php 12 Nov 2004 15:43:32 -0000 1.10.2.4
+++ serendipity_plugin_shoutbox.php 16 Nov 2004 15:23:43 -0000 1.10.2.5
@@ -99,7 +99,7 @@
$dateformat = $this->get_config('dateformat');
//Put new shout into the database if necessary
- if ($_REQUEST['action'] == 'fillshoutbox' && $_REQUEST['serendipity']['shouttext'] != '') {
+ if (!empty($_REQUEST['action']) && $_REQUEST['action'] == 'fillshoutbox' && $_REQUEST['serendipity']['shouttext'] != '') {
// Create table, if not yet existant
if ($this->get_config('version') != '1.0') {
@@ -130,7 +130,7 @@
serendipity_db_escape_string($_REQUEST['serendipity']['shouttext']));
serendipity_db_query($sql);
}
- if ( $serendipity['GET']['action'] == 'shoutboxdelete'
+ if (!empty($serendipity['GET']['action']) && $serendipity['GET']['action'] == 'shoutboxdelete'
&& $_SESSION['serendipityAuthedUser'] === true) {
$sql = sprintf("DELETE from %sshoutbox
WHERE id = %d
|