]> git.mxchange.org Git - friendica.git/commitdiff
sql issue item_store
authorFriendika <info@friendika.com>
Thu, 13 Oct 2011 08:00:06 +0000 (01:00 -0700)
committerFriendika <info@friendika.com>
Thu, 13 Oct 2011 08:00:06 +0000 (01:00 -0700)
boot.php
include/items.php
view/theme/duepuntozero/style.css

index f483d32f36941512bfb62c748df85495a7f1aaec..fb406867d804275f50162efc34a8d6cd4da940db 100644 (file)
--- a/boot.php
+++ b/boot.php
@@ -8,7 +8,7 @@ require_once("include/pgettext.php");
 require_once('include/nav.php');
 
 define ( 'FRIENDIKA_PLATFORM',     'Free Friendika');
-define ( 'FRIENDIKA_VERSION',      '2.3.1131' );
+define ( 'FRIENDIKA_VERSION',      '2.3.1132' );
 define ( 'DFRN_PROTOCOL_VERSION',  '2.21'    );
 define ( 'DB_UPDATE_VERSION',      1095      );
 
index 2c23c6f1bdb7928b7bb2ed62ab30e44afbc52348..36851b01f593b322cbca58b8a63ad9d114abcf94 100644 (file)
@@ -818,14 +818,14 @@ function item_store($arr,$force_parent = false) {
 
        // find the item we just created
 
-       $r = q("SELECT `id` FROM `item` WHERE `uri` = '%s' AND `uid` = %d LIMIT 1 ORDER BY `id` ASC",
+       $r = q("SELECT `id` FROM `item` WHERE `uri` = '%s' AND `uid` = %d ORDER BY `id` ASC LIMIT 1",
                $arr['uri'],           // already dbesc'd
                intval($arr['uid'])
        );
        if(! count($r)) {
                // This is not good, but perhaps we encountered a rare race/cache condition, so back off and try again. 
                sleep(3);
-               $r = q("SELECT `id` FROM `item` WHERE `uri` = '%s' AND `uid` = %d LIMIT 1 ORDER BY `id` ASC",
+               $r = q("SELECT `id` FROM `item` WHERE `uri` = '%s' AND `uid` = %d ORDER BY `id` ASC LIMIT 1",
                        $arr['uri'],           // already dbesc'd
                        intval($arr['uid'])
                );
index 40c3cb81b4cebc448f2a0a03214523b0d3498877..9bb866e7671e8cfa6ce2ea83e7e4569479ff9c5e 100644 (file)
@@ -1861,7 +1861,7 @@ a.mail-list-link {
 
 .widget {
        border: 1px solid #DDDDDD;
-       padding: 5px;
+       padding: 8px;
        margin-top: 5px;
        -moz-border-radius:5px;
        -webkit-border-radius:5px;