[pLog-svn] r4638 - plog/trunk/class/action/admin
oscar at devel.lifetype.net
oscar at devel.lifetype.net
Tue Jan 30 18:31:04 EST 2007
Author: oscar
Date: 2007-01-30 18:31:04 -0500 (Tue, 30 Jan 2007)
New Revision: 4638
Modified:
plog/trunk/class/action/admin/adminaddpostaction.class.php
plog/trunk/class/action/admin/adminaddresourceaction.class.php
plog/trunk/class/action/admin/adminupdateblogsettingsaction.class.php
Log:
don't create bogus locations if none was selected
Modified: plog/trunk/class/action/admin/adminaddpostaction.class.php
===================================================================
--- plog/trunk/class/action/admin/adminaddpostaction.class.php 2007-01-30 23:12:49 UTC (rev 4637)
+++ plog/trunk/class/action/admin/adminaddpostaction.class.php 2007-01-30 23:31:04 UTC (rev 4638)
@@ -84,7 +84,7 @@
// location data, if necessary
// check if we have to save the location data
$config =& Config::getConfig();
- if( $config->getValue( "location_data_enabled", false )) {
+ if(( $config->getValue( "location_data_enabled", false )) && ($this->_request->getValue( "locationId") != "0" )) {
include_once( PLOG_CLASS_PATH."class/dao/locations.class.php" );
$locations = new Locations();
$coords = split(",", $this->_request->getValue( "locationId" ));
Modified: plog/trunk/class/action/admin/adminaddresourceaction.class.php
===================================================================
--- plog/trunk/class/action/admin/adminaddresourceaction.class.php 2007-01-30 23:12:49 UTC (rev 4637)
+++ plog/trunk/class/action/admin/adminaddresourceaction.class.php 2007-01-30 23:31:04 UTC (rev 4638)
@@ -112,7 +112,7 @@
// check if we have to save the location data
$config =& Config::getConfig();
- if( $config->getValue( "location_data_enabled", false )) {
+ if(( $config->getValue( "location_data_enabled", false )) && ($this->_request->getValue( "locationId") != "0" )) {
$locations = new Locations();
$coords = split(",", $this->_request->getValue( "locationId" ));
$location = $locations->getLocationAddIfNotFound( $coords[0], $coords[1], $this->_blogInfo->getId(), $this->_request->getValue( "locationDesc" ));
Modified: plog/trunk/class/action/admin/adminupdateblogsettingsaction.class.php
===================================================================
--- plog/trunk/class/action/admin/adminupdateblogsettingsaction.class.php 2007-01-30 23:12:49 UTC (rev 4637)
+++ plog/trunk/class/action/admin/adminupdateblogsettingsaction.class.php 2007-01-30 23:31:04 UTC (rev 4638)
@@ -175,7 +175,7 @@
// check if we have to save the location data
$config =& Config::getConfig();
- if( $config->getValue( "location_data_enabled", false )) {
+ if(( $config->getValue( "location_data_enabled", false )) && ($this->_request->getValue( "locationId") != "0" )) {
include_once( PLOG_CLASS_PATH."class/dao/locations.class.php" );
$locations = new Locations();
$coords = split(",", $this->_request->getValue( "locationId" ));
More information about the pLog-svn
mailing list