Show
Ignore:
Timestamp:
03/16/07 10:16:26 (2 years ago)
Author:
jm3
Message:

ibehind in committing

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • feedmelinks/modules/main-controller.inc.php

    r1336 r1423  
    2323        } else if( $op == "makeNewFolderAndSubmit" ) { 
    2424                if( $debug ) 
    25                         echo "DEBUG: ADDING <b>$linkName</b> ($url)TO NEW FOLDER $newFolderName<br />\n"; 
     25                        echo "DEBUG: ADDING <b>$linkName</b> ($url) TO NEW FOLDER $newFolderName<br />\n"; 
    2626                if( $url && $linkName ) { 
    2727                        if( $newFolderName ) { 
     
    3030                                $name = urlencode( $linkName ); 
    3131                                $userid = urlencode( $u ); 
    32                                 $isPrivate = $isPrivate ? 1 : "NULL"
     32                                $isPrivate = ($isPrivate && $isPrivate != "NULL" && $isPrivate!= "0" && isPrivate != "no" ) ? 1 : 0
    3333 
    3434                                # first we create the new category 
     
    4141 
    4242                                # then we add the link: 
    43                                 $q = addLinkSimple( $url, $name, $userid, $isPrivate ); 
     43                                $q = addLinkSimple( $url, $name, $userid, $isPrivate, ($from = $from ? $from : "makeNewFolderAndSubmit") ); 
    4444                                if( $q ) { 
    4545                                        echo "link added!<br />\n";  
     
    7878                        } 
    7979                        $userid = urlencode( $u ); 
    80                         $isPrivate = $isPrivate ? 1 : "NULL"
     80                        $isPrivate = ($isPrivate && $isPrivate != "NULL" && $isPrivate!= "0" && isPrivate != "no" ) ? 1 : 0
    8181                        $options = ""; # not yet implemented 
    8282 
     
    8686--> 
    8787<?php 
    88                         $q = addLinkSimple( $url, $name, $userid, $isPrivate ); 
     88                        $q = addLinkSimple( $url, $name, $userid, $isPrivate, ($from = $from ? $from : "main-controller-submit") ); 
    8989                        if( $q ) { 
    9090                                echo "link added!<br />\n";  
     
    153153                        $createDate = urlencode( $createDate ); 
    154154                        $userid = urlencode( $u ); 
    155                         $isPrivate = $isPrivate ? 1 : "NULL"
     155                        $isPrivate = ($isPrivate && $isPrivate != "NULL") ? 1 : 0
    156156 
    157157    $qs = "REPLACE INTO links VALUES($id, '$url', '$name', '$createDate', NULL, '$userid', $groupid, $isPrivate);";