Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

cookie checking on eduwork

  • Loading branch information...
commit 23fe7e83a7ebcceb10f3d1f3686c8d1e30c3b808 1 parent 2355acd
@arunna authored
Showing with 6 additions and 6 deletions.
  1. +6 −6 lumonata-functions/user.php
View
12 lumonata-functions/user.php
@@ -2030,11 +2030,11 @@ function get_eduwork($eduwork,$user_id){
$html.="<br /><label>".$val['from_period']." to ".$val['to_period']."</label><br />
<span style='font-size:10px;'>".$val['jobdes']."</span>
</div>";
- if($user_id==$_COOKIE['user_id'] && isset($_COOKIE['user_id']))
+ if(isset($_COOKIE['user_id']) && $user_id==$_COOKIE['user_id'])
$html.="<div class=\"action\"><a href=\"javascript:;\" id=\"work_edit_".$i."\">Edit</a> | <a href=\"javascript:;\" rel=\"delete_work_".$i."\">Delete</a></div>";
$html.="</div>";
- if($user_id==$_COOKIE['user_id'] && isset($_COOKIE['user_id'])){
+ if(isset($_COOKIE['user_id']) && $user_id==$_COOKIE['user_id']){
$html.="<script type='text/javascript'>
$(function(){
$('#the_work_".$i."').click(function(){
@@ -2088,11 +2088,11 @@ function get_eduwork($eduwork,$user_id){
$html.="</label></div>";
- if($user_id==$_COOKIE['user_id'] && isset($_COOKIE['user_id']))
+ if(isset($_COOKIE['user_id']) && $user_id==$_COOKIE['user_id'] )
$html.="<div class=\"action\"><a href=\"javascript:;\">Edit</a> | <a href=\"javascript:;\" rel=\"delete_college_".$i."\">Delete</a></div>";
$html.="</div>";
- if($user_id==$_COOKIE['user_id'] && isset($_COOKIE['user_id'])){
+ if(isset($_COOKIE['user_id']) && $user_id==$_COOKIE['user_id']){
$html.="<script type='text/javascript'>
$(function(){
$('#college_".$i."').click(function(){
@@ -2115,11 +2115,11 @@ function get_eduwork($eduwork,$user_id){
<strong>".$key."</strong><br />
<label>".$val."</label>
</div>";
- if($user_id==$_COOKIE['user_id'] && isset($_COOKIE['user_id']))
+ if(isset($_COOKIE['user_id']) && $user_id==$_COOKIE['user_id'])
$html.="<div class=\"action\"><a href=\"javascript:;\">Edit</a> | <a href=\"javascript:;\" rel=\"delete_school_".$i."\">Delete</a></div>";
$html.="</div>";
- if($user_id==$_COOKIE['user_id'] && isset($_COOKIE['user_id'])){
+ if( isset($_COOKIE['user_id']) && $user_id==$_COOKIE['user_id']){
$html.="<script type='text/javascript'>
$(function(){
$('#the_school_".$i."').click(function(){
Please sign in to comment.
Something went wrong with that request. Please try again.