View difference between Paste ID: CFwmmdhs and 0y1WndTg
SHOW: | | - or go back to the newest paste.
1
if (!empty($_POST)) {
2-
			foreach ($_POST as $guid => $status) {
2+
	foreach ($_POST as $guid => $status) {
3-
				$sharedUrl[$guid] = shareSingleNote($guid);
3+
		$sharedUrl[$guid] = shareSingleNote($guid);
4-
	 		}
4+
	 }
5-
		$_SESSION['sharedUrls'] = $sharedUrl;
5+
	$_SESSION['sharedUrls'] = $sharedUrl;
6-
	 	}
6+
}
7
$links = $_SESSION['sharedUrls'];
8-
        	foreach (array_combine($_SESSION['notes_title'], $_SESSION['notes_guid']) as $title => $guid){
8+
        foreach (array_combine($_SESSION['notes_title'], $_SESSION['notes_guid']) as $title => $guid){
9-
        		if (!empty($links[$guid])){
9+
        	if (!empty($links[$guid])){
10-
        			echo $title.": <a href='".$links[$guid]."'>".$links[$guid]."</a></br><br>";
10+
        		echo $title.": <a href='".$links[$guid]."'>".$links[$guid]."</a></br><br>";
11-
				}
11+
		}
12-
        	}
12+
        }